Class SubtractionNode
java.lang.Object
de.gebit.integrity.operations.standard.operands.OperatorNode<BigDecimal,BigDecimal>
de.gebit.integrity.operations.standard.operands.SubtractionNode
Subtracts one value from the other.
- Author:
- Rene Schneider - initial API and implementation
-
Constructor Summary
ConstructorsConstructorDescriptionSubtractionNode(Operation anOperation, Object aLeftOperand, Object aRightOperand) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectevaluateInternal(BigDecimal aLeftOperand, BigDecimal aRightOperand) Must be implemented by subclasses to implement the actual evaluation of this node.Methods inherited from class de.gebit.integrity.operations.standard.operands.OperatorNode
evaluate, getEvaluatedLeftOperand, getEvaluatedRightOperand
-
Constructor Details
-
SubtractionNode
Creates a new instance.- Parameters:
aLeftOperand-aRightOperand-
-
-
Method Details
-
evaluateInternal
protected Object evaluateInternal(BigDecimal aLeftOperand, BigDecimal aRightOperand) throws UnexecutableException Description copied from class:OperatorNodeMust be implemented by subclasses to implement the actual evaluation of this node. It will get evaluated and converted operands and needs to return the result of the evaluation.- Specified by:
evaluateInternalin classOperatorNode<BigDecimal,BigDecimal> - Parameters:
aLeftOperand- the evaluated left operandaRightOperand- the evaluated right operand- Returns:
- the result of the evaluation
- Throws:
UnexecutableException
-