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 |
---|---|
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
|
apply
shouldCoerceToBoolean, shouldEvaluate
public static final MultiplyOperator SINGLETON
public String getOperatorSymbol()
getOperatorSymbol
in class BinaryOperator
public double apply(double pLeft, double pRight, Logger pLogger)
apply
in class ArithmeticOperator
public long apply(long pLeft, long pRight, Logger pLogger)
apply
in class ArithmeticOperator
Copyright © 2016 JBoss by Red Hat. All rights reserved.