public abstract class ArithmeticOperator extends BinaryOperator
This is the superclass for all binary arithmetic operators
Constructor and Description |
---|
ArithmeticOperator() |
Modifier and Type | Method and Description |
---|---|
abstract BigDecimal |
apply(BigDecimal pLeft,
BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a
BigDecimal.
|
abstract BigInteger |
apply(BigInteger pLeft,
BigInteger pRight)
Applies the operator to the given BigInteger values, returning a
BigInteger.
|
abstract double |
apply(double pLeft,
double pRight)
Applies the operator to the given double values, returning a double
|
abstract long |
apply(long pLeft,
long pRight)
Applies the operator to the given double values, returning a double
|
Object |
apply(Object pLeft,
Object pRight)
Applies the operator to the given value
|
getOperatorSymbol, shouldCoerceToBoolean, shouldEvaluate
public ArithmeticOperator()
public Object apply(Object pLeft, Object pRight) throws ELException
apply
in class BinaryOperator
ELException
public abstract double apply(double pLeft, double pRight)
public abstract long apply(long pLeft, long pRight)
public abstract BigDecimal apply(BigDecimal pLeft, BigDecimal pRight)
public abstract BigInteger apply(BigInteger pLeft, BigInteger pRight)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.