Package org.apache.juneau.internal
Class AnnotationUtils
java.lang.Object
org.apache.juneau.internal.AnnotationUtils
Annotation utilities.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
equals
(Annotation a1, Annotation a2) Checks if two annotations are equal using the criteria for equality presented in theAnnotation.equals(Object)
API docs.static int
Generate 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,null
returnsfalse
unless both arenull
a2
- the second Annotation to compare,null
returnsfalse
unless both arenull
- Returns:
true
if the two annotations areequal
or 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 anException
is encountered during annotation member accessIllegalStateException
- if an annotation method invocation returnsnull
-