public enum Comparator extends java.lang.Enum<Comparator>
Enum Constant and Description |
---|
EQUAL_TO
The equals-to operator.
|
GREATER_THAN
The greater-than operator.
|
GREATER_THAN_OR_EQUAL_TO
The greater-than-or-equal-to operator.
|
LESS_THAN
The less-than operator.
|
LESS_THAN_OR_EQUAL_TO
The less-than-or-equal-to operator.
|
Modifier and Type | Method and Description |
---|---|
static Comparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Comparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Comparator EQUAL_TO
public static final Comparator LESS_THAN
public static final Comparator GREATER_THAN
public static final Comparator LESS_THAN_OR_EQUAL_TO
public static final Comparator GREATER_THAN_OR_EQUAL_TO
public static Comparator[] values()
for (Comparator c : Comparator.values()) System.out.println(c);
public static Comparator 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 null