public abstract class BaseAnnotationEncodedValue extends java.lang.Object implements AnnotationEncodedValue
| Constructor and Description |
|---|
BaseAnnotationEncodedValue() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EncodedValue o)
Compare this AnnotationEncodedValue to another EncodedValue.
|
boolean |
equals(java.lang.Object o)
Compares this AnnotationEncodedValue to another AnnotationEncodedValue for equality.
|
int |
getValueType()
Returns the type of this encoded value.
|
int |
hashCode()
Returns a hashcode for this AnnotationEncodedValue.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElements, getTypepublic int hashCode()
AnnotationEncodedValue
int hashCode = getType().hashCode();
hashCode = hashCode*31 + getElements().hashCode();
hashCode in interface AnnotationEncodedValuehashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
AnnotationEncodedValueequals in interface AnnotationEncodedValueequals in class java.lang.Objecto - The object to be compared for equality with this AnnotationEncodedValuepublic int compareTo(@Nonnull
EncodedValue o)
AnnotationEncodedValuecompareTo in interface java.lang.Comparable<EncodedValue>compareTo in interface AnnotationEncodedValueo - The EncodedValue to compare with this AnnotationEncodedValuepublic int getValueType()
EncodedValuegetValueType in interface EncodedValue