Package org.gbif.api.util
Class AnnotationUtils
- java.lang.Object
-
- org.gbif.api.util.AnnotationUtils
-
public final class AnnotationUtils extends Object
Utility method to work with annotations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isFieldDeprecated(Class<?> _class, String fieldName)
Check if a field is annotated with @Deprecated in the provided class.
-
-
-
Method Detail
-
isFieldDeprecated
public static boolean isFieldDeprecated(Class<?> _class, String fieldName)
Check if a field is annotated with @Deprecated in the provided class. Mostly used on elements of an Enum but will also work on classField
(private and public).- Returns:
- true if the specified field is annotated with @Deprecated on the provided class. False is all other cases (including if the field doesn't exist)
-
-