MinusOperatorpublic class MinusOperator extends ArithmeticOperator The implementation of the minus operator |
Fields Summary |
---|
public static final MinusOperator | SINGLETON |
Constructors Summary |
---|
public MinusOperator()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 "-";
|
|