Package org.apache.juneau.internal
Class AnnotationUtils
java.lang.Object
org.apache.juneau.internal.AnnotationUtils
Annotation utilities.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
AnnotationUtils
public AnnotationUtils()
-
-
Method Details
-
equals
Checks if two annotations are equal using the criteria for equality presented in theAnnotation.equals(Object)API docs.- Parameters:
a1- the first Annotation to compare,nullreturnsfalseunless both arenulla2- the second Annotation to compare,nullreturnsfalseunless both arenull- Returns:
trueif the two annotations areequalor bothnull
-
hashCode
Generate 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, notnull- Returns:
- the calculated hash code
- Throws:
RuntimeException- if anExceptionis encountered during annotation member accessIllegalStateException- if an annotation method invocation returnsnull
-