public static enum InequalitySystem.Comparator extends java.lang.Enum<InequalitySystem.Comparator>
| Enum Constant and Description |
|---|
EQUAL |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
LESS_THAN |
LESS_THAN_OR_EQUAL |
UNEQUAL |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
compare(java.lang.Comparable<T> left,
T right)
Compare a value via this comparator.
|
static InequalitySystem.Comparator |
fromString(java.lang.String str)
Return the comparator which is described by the given string.
|
java.lang.String |
toString() |
static InequalitySystem.Comparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InequalitySystem.Comparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InequalitySystem.Comparator LESS_THAN_OR_EQUAL
public static final InequalitySystem.Comparator LESS_THAN
public static final InequalitySystem.Comparator EQUAL
public static final InequalitySystem.Comparator UNEQUAL
public static final InequalitySystem.Comparator GREATER_THAN
public static final InequalitySystem.Comparator GREATER_THAN_OR_EQUAL
public static InequalitySystem.Comparator[] values()
for (InequalitySystem.Comparator c : InequalitySystem.Comparator.values()) System.out.println(c);
public static InequalitySystem.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 nullpublic java.lang.String toString()
toString in class java.lang.Enum<InequalitySystem.Comparator>public <T> boolean compare(java.lang.Comparable<T> left,
T right)
T - the type of comparable to compareleft - The left sideright - The right sidepublic static InequalitySystem.Comparator fromString(java.lang.String str)
str - String representation of comparator.