public class NumericCondition extends Condition
Attribute is less, greater or equal to a certain value.| Modifier and Type | Class and Description |
|---|---|
static class |
NumericCondition.Comparator
All possible comparators that can be used by a
NumericCondition to compare two
values. |
| Constructor and Description |
|---|
NumericCondition(@NotNull Attribute attribute,
@NotNull NumericCondition.Comparator comparator,
double value)
Creates a new numeric condition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
@NotNull NumericCondition.Comparator |
getComparator()
Returns the comparator that is used by the condition.
|
int |
hashCode() |
protected boolean |
testValue(double value)
The method that must be overridden by implementing subclasses in order to check whether a
specific value satisfies the condition or not.
|
java.lang.String |
toString() |
getAttribute, getValue, testpublic NumericCondition(@NotNull
@NotNull Attribute attribute,
@NotNull
@NotNull NumericCondition.Comparator comparator,
double value)
attribute - The attribute, the condition corresponds tocomparator - The comparator that should be usedvalue - The value of the condition@NotNull public @NotNull NumericCondition.Comparator getComparator()
protected boolean testValue(double value)
Conditionpublic java.lang.String toString()
toString in class java.lang.Object