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