public abstract class BaseAnnotationElement extends java.lang.Object implements AnnotationElement
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<AnnotationElement> |
BY_NAME |
| Constructor and Description |
|---|
BaseAnnotationElement() |
| 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.
|
int |
hashCode()
Returns a hashcode for this AnnotationElement.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetName, getValuepublic static final java.util.Comparator<AnnotationElement> BY_NAME
public int hashCode()
AnnotationElement
int hashCode = getName().hashCode();
hashCode = hashCode*31 + getValue().hashCode();
hashCode in interface AnnotationElementhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
AnnotationElementequals in interface AnnotationElementequals in class java.lang.Objecto - The object to be compared for equality with this AnnotationElementpublic int compareTo(AnnotationElement o)
AnnotationElementcompareTo in interface java.lang.Comparable<AnnotationElement>compareTo in interface AnnotationElemento - The AnnotationElement to compare with this AnnotationElement