PlusOperatorpublic class PlusOperator extends ArithmeticOperator The implementation of the plus operator |
Fields Summary |
---|
public static final PlusOperator | SINGLETON |
Constructors Summary |
---|
public PlusOperator()Constructor
//-------------------------------------
|
Methods Summary |
---|
public double | apply(double pLeft, double pRight, Logger pLogger)Applies the operator to the given double values, returning a double
return pLeft + pRight;
| public long | apply(long pLeft, long pRight, Logger pLogger)Applies the operator to the given double values, returning a double
return pLeft + pRight;
| public java.lang.String | getOperatorSymbol()Returns the symbol representing the operator
return "+";
|
|