public static enum NumericCondition.Comparator extends java.lang.Enum<NumericCondition.Comparator>
NumericCondition to compare two
values.| Enum Constant and Description |
|---|
EQUAL
If two values should be equal.
|
GREATER
If the first value should be greater than the second value.
|
GREATER_OR_EQUAL
If the first value should be greater that or equal to the second value.
|
LESS
If the first value should be less than the second value.
|
LESS_OR_EQUAL
If the first value should be less than or equal to the second value.
|
NOT_EQUAL
If two values should not be equal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(double actualValue,
double expectedValue)
Tests if two values satisfy the comparator.
|
static NumericCondition.Comparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NumericCondition.Comparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumericCondition.Comparator EQUAL
public static final NumericCondition.Comparator NOT_EQUAL
public static final NumericCondition.Comparator GREATER
public static final NumericCondition.Comparator GREATER_OR_EQUAL
public static final NumericCondition.Comparator LESS
public static final NumericCondition.Comparator LESS_OR_EQUAL
public static NumericCondition.Comparator[] values()
for (NumericCondition.Comparator c : NumericCondition.Comparator.values()) System.out.println(c);
public static NumericCondition.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 boolean test(double actualValue,
double expectedValue)
actualValue - The actual valueexpectedValue - The expected value