public interface Annotation extends BasicAnnotation, java.lang.Comparable<Annotation>
| 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.
|
java.util.Set<? extends AnnotationElement> |
getElements()
Gets a set of the name/value elements associated with this annotation.
|
java.lang.String |
getType()
Gets the type of this annotation.
|
int |
getVisibility()
Gets the visibility of this annotation.
|
int |
hashCode()
Returns a hashcode for this Annotation.
|
int getVisibility()
@Nonnull java.lang.String getType()
getType in interface BasicAnnotation@Nonnull java.util.Set<? extends AnnotationElement> getElements()
getElements in interface BasicAnnotationint hashCode()
int hashCode = getVisibility();
hashCode = hashCode*31 + getType().hashCode();
hashCode = hashCode*31 + getElements().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 Annotationint compareTo(Annotation o)
compareTo in interface java.lang.Comparable<Annotation>o - The Annotation to compare with this Annotation