java.lang.reflect.AnnotatedElement interface discusses
compatibility concerns when evolving an annotation interface from being
non-repeatable to being repeatable.
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: the annotation interface of this annotationReturns the annotation interface of this annotation. |
| public boolean | |
| public int | |
| public String | Returns: a string representation of this annotationReturns a string representation of this annotation. |
| annotationType | back to summary |
|---|---|
| public Class Returns the annotation interface of this annotation. API Note Implementation-dependent classes are used to provide
the implementations of annotations. Therefore, calling
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Returns true if the specified object represents an annotation that is logically equivalent to this one. In other words, returns true if the specified object is an instance of the same annotation interface as this instance, all of whose members are equal to the corresponding member of this annotation, as defined below:
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Returns the hash code of this annotation. The hash code of an annotation is the sum of the hash codes
of its members (including those with default values).
The hash code of an annotation member is (127 times the hash code
of the member-name as computed by
| |
| toString | back to summary |
|---|---|
| public String toString() Returns a string representation of this annotation. The details of the representation are implementation-dependent, but the following may be regarded as typical: @com.example.Name(first="Duke", middle="of", last="Java")
| |