public abstract class BaseAnnotation extends java.lang.Object implements Annotation
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<? super Annotation> |
BY_TYPE |
| Constructor and Description |
|---|
BaseAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Annotation o)
Compares this Annotation to another Annotation.
|
boolean |
equals(java.lang.Object o)
Compares this Annotation to another Annotation for equality.
|
int |
hashCode()
Returns a hashcode for this Annotation.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElements, getType, getVisibilitypublic static final java.util.Comparator<? super Annotation> BY_TYPE
public int hashCode()
Annotation
int hashCode = getVisibility();
hashCode = hashCode*31 + getType().hashCode();
hashCode = hashCode*31 + getElements().hashCode();
hashCode in interface AnnotationhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
Annotationequals in interface Annotationequals in class java.lang.Objecto - The object to be compared for equality with this Annotationpublic int compareTo(Annotation o)
AnnotationcompareTo in interface java.lang.Comparable<Annotation>compareTo in interface Annotationo - The Annotation to compare with this Annotation