private static enum Range.ComparableComparator extends java.lang.Enum<Range.ComparableComparator> implements java.util.Comparator
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Comparable based compare implementation.
|
static Range.ComparableComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Range.ComparableComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Range.ComparableComparator INSTANCE
public static Range.ComparableComparator[] values()
for (Range.ComparableComparator c : Range.ComparableComparator.values()) System.out.println(c);
public static Range.ComparableComparator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparatorobj1 - left hand side of comparisonobj2 - right hand side of comparison