Package org.apache.commons.el
Class PlusOperator
- java.lang.Object
-
- org.apache.commons.el.BinaryOperator
-
- org.apache.commons.el.ArithmeticOperator
-
- org.apache.commons.el.PlusOperator
-
public class PlusOperator extends ArithmeticOperator
The implementation of the plus operator
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
- Author:
- Nathan Abramson - Art Technology Group
-
-
Field Summary
Fields Modifier and Type Field Description static PlusOperatorSINGLETON
-
Constructor Summary
Constructors Constructor Description PlusOperator()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleapply(double pLeft, double pRight)Applies the operator to the given double values, returning a doublelongapply(long pLeft, long pRight)Applies the operator to the given double values, returning a doublejava.math.BigDecimalapply(java.math.BigDecimal pLeft, java.math.BigDecimal pRight)Applies the operator to the given BigDecimal values, returning a BigDecimal.java.math.BigIntegerapply(java.math.BigInteger pLeft, java.math.BigInteger pRight)Applies the operator to the given BigInteger values, returning a BigInteger.java.lang.StringgetOperatorSymbol()Returns the symbol representing the operator-
Methods inherited from class org.apache.commons.el.ArithmeticOperator
apply
-
Methods inherited from class org.apache.commons.el.BinaryOperator
shouldCoerceToBoolean, shouldEvaluate
-
-
-
-
Field Detail
-
SINGLETON
public static final PlusOperator SINGLETON
-
-
Method Detail
-
getOperatorSymbol
public java.lang.String getOperatorSymbol()
Returns the symbol representing the operator- Specified by:
getOperatorSymbolin classBinaryOperator
-
apply
public double apply(double pLeft, double pRight)Applies the operator to the given double values, returning a double- Specified by:
applyin classArithmeticOperator
-
apply
public long apply(long pLeft, long pRight)Applies the operator to the given double values, returning a double- Specified by:
applyin classArithmeticOperator
-
apply
public java.math.BigDecimal apply(java.math.BigDecimal pLeft, java.math.BigDecimal pRight)Applies the operator to the given BigDecimal values, returning a BigDecimal.- Specified by:
applyin classArithmeticOperator
-
apply
public java.math.BigInteger apply(java.math.BigInteger pLeft, java.math.BigInteger pRight)Applies the operator to the given BigInteger values, returning a BigInteger.- Specified by:
applyin classArithmeticOperator
-
-