public abstract class RelationalOperator extends BinaryOperator
This is the superclass for all relational operators (except == or !=)
Constructor and Description |
---|
RelationalOperator() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
apply(BigDecimal pLeft,
BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
|
abstract boolean |
apply(BigInteger pLeft,
BigInteger pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
|
abstract boolean |
apply(double pLeft,
double pRight)
Applies the operator to the given double values
|
abstract boolean |
apply(long pLeft,
long pRight)
Applies the operator to the given long values
|
Object |
apply(Object pLeft,
Object pRight)
Applies the operator to the given value
|
abstract boolean |
apply(String pLeft,
String pRight)
Applies the operator to the given String values
|
protected boolean |
isEqual(int val)
Test return value of BigInteger/BigDecimal A.compareTo(B).
|
protected boolean |
isGreater(int val)
Test return value of BigInteger/BigDecimal A.compareTo(B).
|
protected boolean |
isLess(int val)
Test return value of BigInteger/BigDecimal A.compareTo(B).
|
getOperatorSymbol, shouldCoerceToBoolean, shouldEvaluate
public RelationalOperator()
public Object apply(Object pLeft, Object pRight) throws ELException
apply
in class BinaryOperator
ELException
public abstract boolean apply(double pLeft, double pRight)
public abstract boolean apply(long pLeft, long pRight)
public abstract boolean apply(String pLeft, String pRight)
public abstract boolean apply(BigDecimal pLeft, BigDecimal pRight)
public abstract boolean apply(BigInteger pLeft, BigInteger pRight)
protected boolean isLess(int val)
val
- - result of BigInteger/BigDecimal compareTo() callprotected boolean isEqual(int val)
val
- - result of BigInteger/BigDecimal compareTo() callprotected boolean isGreater(int val)
val
- - result of BigInteger/BigDecimal compareTo() callCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.