Class MultiplicationNode
- java.lang.Object
-
- de.gebit.integrity.operations.standard.operands.OperatorNode<java.math.BigDecimal,java.math.BigDecimal>
-
- de.gebit.integrity.operations.standard.operands.MultiplicationNode
-
public class MultiplicationNode extends OperatorNode<java.math.BigDecimal,java.math.BigDecimal>
Multiplies two numbers.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description MultiplicationNode(Operation anOperation, java.lang.Object aLeftOperand, java.lang.Object aRightOperand)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
evaluateInternal(java.math.BigDecimal aLeftOperand, java.math.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 Detail
-
MultiplicationNode
public MultiplicationNode(Operation anOperation, java.lang.Object aLeftOperand, java.lang.Object aRightOperand)
Creates an instance.- Parameters:
aLeftOperand
-aRightOperand
-
-
-
Method Detail
-
evaluateInternal
protected java.lang.Object evaluateInternal(java.math.BigDecimal aLeftOperand, java.math.BigDecimal aRightOperand) throws UnexecutableException
Description copied from class:OperatorNode
Must 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:
evaluateInternal
in classOperatorNode<java.math.BigDecimal,java.math.BigDecimal>
- Parameters:
aLeftOperand
- the evaluated left operandaRightOperand
- the evaluated right operand- Returns:
- the result of the evaluation
- Throws:
UnexecutableException
-
-