public enum Comparator extends Enum<Comparator>
| Enum Constant and Description |
|---|
EQ
Equality
|
GT
Greater than
|
GTE
Greater than or equal
|
LT
Lower than
|
LTE
Lower than or equal
|
NEQ
Inequality
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator |
fromString(String str)
Create a comparator from a string
|
Comparator |
getInverse()
Inverts the operator
|
String |
toString()
Returns the string representation
|
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 EQ
public static final Comparator NEQ
public static final Comparator GT
public static final Comparator LT
public static final Comparator GTE
public static final Comparator LTE
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 nullpublic static Comparator fromString(String str)
str - the string representationpublic Comparator getInverse()
public String toString()
toString in class Enum<Comparator>Copyright © 2017. All rights reserved.