Interface AnnotationElement
- All Superinterfaces:
Comparable<AnnotationElement>
- All Known Implementing Classes:
AnnotationElementRewriter.RewrittenAnnotationElement, BaseAnnotationElement, BuilderAnnotationElement, DexBackedAnnotationElement, ImmutableAnnotationElement
This class represents an individual name/value element in an annotation
-
Method Summary
Modifier and TypeMethodDescriptionintCompares this AnnotationElement to another AnnotationElement.booleanCompares this AnnotationElement to another AnnotationElement for equality.getName()Gets the name of the element.getValue()Gets the value of the element.inthashCode()Returns a hashcode for this AnnotationElement.
-
Method Details
-
getName
-
getValue
-
hashCode
-
equals
Compares this AnnotationElement to another AnnotationElement for equality. This AnnotationElement is equal to another AnnotationElement if all of it's "fields" are equal. That is, if the return values of getName() and getValue() are both equal. -
compareTo
Compares this AnnotationElement to another AnnotationElement. The comparison is based on the value of getName() and getValue(), in that order.- Specified by:
compareToin interfaceComparable<AnnotationElement>- Parameters:
o- The AnnotationElement to compare with this AnnotationElement- Returns:
- An integer representing the result of the comparison
-