Interface BinaryFunction<T,R>
-
- All Known Subinterfaces:
AssociativeOperation<T>
,BinaryOperation<T>
,BinaryPredicate<T>
,CommutativeAssociativeOperation<T>
,CommutativeOperation<T>
- All Known Implementing Classes:
AbstractDiscreteFunctionBinaryOperation
,AbstractQuantityStatisticPredicate
,DiscreteFunctionAddition
,DiscreteFunctionDivision
,DiscreteFunctionMultiplication
,DiscreteFunctionSubtraction
,ElementBinaryFunction
,ElementBinaryOperation
,InnerTensorOperation
,IsEqualTo
,IsNotEqualTo
,QuantityAddition
,QuantityBinaryOperation
,QuantityDivision
,QuantityGreaterPredicate
,QuantityLessPredicate
,QuantityMultiplication
,QuantitySubtraction
,QuantitySumOrDifferenceOperation
public interface BinaryFunction<T,R>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
perform(T left, T right)
Has to be implemented to perform the actual operation.
-
-
-
Method Detail
-
perform
R perform(T left, T right)
Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.- Parameters:
left
- the left operand to be used in the operationright
- the right operand to be used in the operation- Returns:
- the result of the operation
-
-