Package org.apache.juneau.internal
Class AnnotationUtils
java.lang.Object
org.apache.juneau.internal.AnnotationUtils
Annotation utilities.
 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanequals(Annotation a1, Annotation a2) Checks if two annotations are equal using the criteria for equality presented in theAnnotation.equals(Object)API docs.static intGenerate a hash code for the given annotation using the algorithm presented in theAnnotation.hashCode()API docs.
- 
Constructor Details- 
AnnotationUtilspublic AnnotationUtils()
 
- 
- 
Method Details- 
equalsChecks if two annotations are equal using the criteria for equality presented in theAnnotation.equals(Object)API docs.- Parameters:
- a1- the first Annotation to compare,- nullreturns- falseunless both are- null
- a2- the second Annotation to compare,- nullreturns- falseunless both are- null
- Returns:
- trueif the two annotations are- equalor both- null
 
- 
hashCodeGenerate a hash code for the given annotation using the algorithm presented in theAnnotation.hashCode()API docs.- Parameters:
- a- the Annotation for a hash code calculation is desired, not- null
- Returns:
- the calculated hash code
- Throws:
- RuntimeException- if an- Exceptionis encountered during annotation member access
- IllegalStateException- if an annotation method invocation returns- null
 
 
-