| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Comparator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Annotation
the first object to be compared. o1, Annotation the second object to be compared. o2)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Implements java. |
| public static Comparator |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final Comparator<Annotation> INSTANCE | |
| AnnotationNameComparator | back to summary |
|---|---|
| pack-priv AnnotationNameComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Annotation o1, Annotation o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements java. Doc from java. Indicates whether some other object is "equal to"
this comparator. This method must obey the general contract of
Note that it is always safe not to override
| |
| getInstance | back to summary |
|---|---|
| public static Comparator | |