public static enum NumericExpressionHelper.Operator extends Enum<NumericExpressionHelper.Operator>
Enum Constant and Description |
---|
EQ
Evaluates to true if the first and the second value are equal in
value.
|
GE
Evaluates to true if the first value is greater than or equal to the
second value.
|
GT
Evaluates to true if the first value is greater than the second
value.
|
IN
Evaluates to true if the first value is found in the set of other
values.
|
LE
Evaluates to true if the first value is less than or equal to the
second value.
|
LT
Evaluates to true if the first value is less than the second value.
|
NEG
Evaluates to true if the first value is negative.
|
NEQ
Evaluates to true if the first and the second value are NOT equal in
value.
|
NIN
Evaluates to true if the first value is not found in the set of other
values.
|
POS
Evaluates to true if the first value is positive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Options options) |
int |
getMinParams() |
static NumericExpressionHelper.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumericExpressionHelper.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumericExpressionHelper.Operator EQ
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator NEQ
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator GT
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator GE
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator LT
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator LE
BigDecimal.compareTo(BigDecimal)
public static final NumericExpressionHelper.Operator NEG
public static final NumericExpressionHelper.Operator POS
public static final NumericExpressionHelper.Operator IN
Iterable
s and arrays are treated as
separate objects.public static final NumericExpressionHelper.Operator NIN
Iterable
s and arrays are treated as
separate objects.public static NumericExpressionHelper.Operator[] values()
for (NumericExpressionHelper.Operator c : NumericExpressionHelper.Operator.values()) System.out.println(c);
public static NumericExpressionHelper.Operator 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 int getMinParams()
public boolean evaluate(Options options)
Copyright © 2017. All rights reserved.