public class ArithmeticCondition
extends java.lang.Object
| Constructor and Description |
|---|
ArithmeticCondition(java.lang.String cond)
Creates a new condition based on the given string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrueFor(double value)
Returns true if the given value satisfies "V X N" where V is the given
value, X is the operator (from the settings), and N is the numeric value
given after the operator in the settings.
|
java.lang.String |
toString() |
public ArithmeticCondition(java.lang.String cond)
cond - The condition string. Must consist of one operator
("<", ">", or "=") and one double-precision floating point number.SettingsError - if the given string is not a valid conditionpublic boolean isTrueFor(double value)
value - The value to checkpublic java.lang.String toString()
toString in class java.lang.Object