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