public enum AnnotationComparator extends Enum<AnnotationComparator> implements Comparator<Annotation>
Annotations.| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Annotation left,
Annotation right) |
static AnnotationComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final AnnotationComparator INSTANCE
public static AnnotationComparator[] values()
for (AnnotationComparator c : AnnotationComparator.values()) System.out.println(c);
public static AnnotationComparator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int compare(@MaybeNull Annotation left, @MaybeNull Annotation right)
compare in interface Comparator<Annotation>Copyright © 2014–2026. All rights reserved.