Package org.gbif.api.util
Class AnnotationUtils
java.lang.Object
org.gbif.api.util.AnnotationUtils
Utility method to work with annotations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isFieldDeprecated
(Class<?> _class, String fieldName) Check if a field is annotated with @Deprecated in the provided class.
-
Method Details
-
isFieldDeprecated
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)
-