public enum Comparator extends Enum<Comparator>
| Enum Constant and Description |
|---|
EQ
EQUAL TO
|
GT
GREATER THAN
|
GTE
GREATER THAN OR EQUAL TO
|
LT
LESS THAN
|
LTE
LESS THAN OR EQUAL TO
|
NEQ
NOT EQUAL TO
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator |
valueOf(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 LT
public static final Comparator LTE
public static final Comparator EQ
public static final Comparator NEQ
public static final Comparator GT
public static final Comparator GTE
public static Comparator[] values()
for (Comparator c : Comparator.values()) System.out.println(c);
public static Comparator 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 nullCopyright © 2018. All rights reserved.