public interface AnnotationElement extends java.lang.Comparable<AnnotationElement>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AnnotationElement o)
Compares this AnnotationElement to another AnnotationElement.
|
boolean |
equals(java.lang.Object o)
Compares this AnnotationElement to another AnnotationElement for equality.
|
java.lang.String |
getName()
Gets the name of the element.
|
EncodedValue |
getValue()
Gets the value of the element.
|
int |
hashCode()
Returns a hashcode for this AnnotationElement.
|
@Nonnull java.lang.String getName()
@Nonnull EncodedValue getValue()
int hashCode()
int hashCode = getName().hashCode();
hashCode = hashCode*31 + getValue().hashCode();
hashCode in class java.lang.Objectboolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objecto - The object to be compared for equality with this AnnotationElementint compareTo(AnnotationElement o)
compareTo in interface java.lang.Comparable<AnnotationElement>o - The AnnotationElement to compare with this AnnotationElement