public class PlusOperator extends ArithmeticOperator
The implementation of the plus operator
| Modifier and Type | Field and Description |
|---|---|
static PlusOperator |
SINGLETON |
| Constructor and Description |
|---|
PlusOperator()
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
|
java.lang.String |
getOperatorSymbol()
Returns the symbol representing the operator
|
applyshouldCoerceToBoolean, shouldEvaluatepublic static final PlusOperator SINGLETON
public java.lang.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 (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.