public class MultiplyOperator extends ArithmeticOperator
The implementation of the multiply operator
| Modifier and Type | Field and Description |
|---|---|
static MultiplyOperator |
SINGLETON |
| Constructor and Description |
|---|
MultiplyOperator()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
apply(BigDecimal pLeft,
BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal.
|
BigInteger |
apply(BigInteger pLeft,
BigInteger pRight)
Applies the operator to the given BigInteger values, returning a BigInteger.
|
double |
apply(double pLeft,
double pRight)
Applies the operator to the given double values, returning a double
|
long |
apply(long pLeft,
long pRight)
Applies the operator to the given double values, returning a double
|
String |
getOperatorSymbol()
Returns the symbol representing the operator
|
applyshouldCoerceToBoolean, shouldEvaluatepublic static final MultiplyOperator SINGLETON
public MultiplyOperator()
public String getOperatorSymbol()
getOperatorSymbol in class BinaryOperatorpublic double apply(double pLeft, double pRight)
apply in class ArithmeticOperatorpublic long apply(long pLeft, long pRight)
apply in class ArithmeticOperatorpublic BigDecimal apply(BigDecimal pLeft, BigDecimal pRight)
apply in class ArithmeticOperatorpublic BigInteger apply(BigInteger pLeft, BigInteger pRight)
apply in class ArithmeticOperatorCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.