public abstract class AbstractNumericOperator extends Object implements InfixOperator
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumericOperator() |
Modifier and Type | Method and Description |
---|---|
TypeValuePair |
evaluate(FormulaContext context,
TypeValuePair value1,
TypeValuePair value2)
Evaluates the comptuation for both parameters.
|
protected abstract Number |
evaluate(Number number1,
Number number2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLevel, isAssociative, isLeftOperation
protected static final Number ZERO
public final TypeValuePair evaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2) throws EvaluationException
InfixOperator
evaluate
in interface InfixOperator
EvaluationException
protected abstract Number evaluate(Number number1, Number number2) throws EvaluationException
EvaluationException
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.