Package org.apache.commons.el
Class MinusOperator
java.lang.Object
org.apache.commons.el.BinaryOperator
org.apache.commons.el.ArithmeticOperator
org.apache.commons.el.MinusOperator
The implementation of the minus operator
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
- Author:
- Nathan Abramson - Art Technology Group
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
apply
(double pLeft, double pRight) Applies the operator to the given double values, returning a doublelong
apply
(long pLeft, long pRight) Applies the operator to the given double values, returning a doubleapply
(BigDecimal pLeft, BigDecimal pRight) Applies the operator to the given BigDecimal values, returning a BigDecimal.apply
(BigInteger pLeft, BigInteger pRight) Applies the operator to the given BigInteger values, returning a BigInteger.Returns the symbol representing the operatorMethods inherited from class org.apache.commons.el.ArithmeticOperator
apply
Methods inherited from class org.apache.commons.el.BinaryOperator
shouldCoerceToBoolean, shouldEvaluate
-
Field Details
-
SINGLETON
-
-
Constructor Details
-
MinusOperator
public MinusOperator()Constructor
-
-
Method Details
-
getOperatorSymbol
Returns the symbol representing the operator- Specified by:
getOperatorSymbol
in classBinaryOperator
-
apply
public double apply(double pLeft, double pRight) Applies the operator to the given double values, returning a double- Specified by:
apply
in classArithmeticOperator
-
apply
public long apply(long pLeft, long pRight) Applies the operator to the given double values, returning a double- Specified by:
apply
in classArithmeticOperator
-
apply
Applies the operator to the given BigDecimal values, returning a BigDecimal.- Specified by:
apply
in classArithmeticOperator
-
apply
Applies the operator to the given BigInteger values, returning a BigInteger.- Specified by:
apply
in classArithmeticOperator
-