private static enum Chars.LexicographicalComparator extends java.lang.Enum<Chars.LexicographicalComparator> implements java.util.Comparator<char[]>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
compare(char[] left,
char[] right) |
static Chars.LexicographicalComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Chars.LexicographicalComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Chars.LexicographicalComparator INSTANCE
public static Chars.LexicographicalComparator[] values()
for (Chars.LexicographicalComparator c : Chars.LexicographicalComparator.values()) System.out.println(c);
public static Chars.LexicographicalComparator 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(char[] left, char[] right)
compare
in interface java.util.Comparator<char[]>