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, shouldEvaluatepublic Object apply(Object pLeft, Object pRight) throws javax.servlet.jsp.el.ELException
apply in class BinaryOperatorjavax.servlet.jsp.el.ELExceptionpublic 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-2012 Apache Software Foundation. All Rights Reserved.