public enum FieldComparator extends Enum<FieldComparator> implements Comparator<Field>
Fields.| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Field left,
Field right) |
static FieldComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldComparator[] |
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 FieldComparator INSTANCE
public static FieldComparator[] values()
for (FieldComparator c : FieldComparator.values()) System.out.println(c);
public static FieldComparator 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(Field left, Field right)
compare in interface Comparator<Field>Copyright © 2014–2025. All rights reserved.