Interface Operation
- All Superinterfaces:
BiFunction<Numeral,Numeral[], Numeral>
- All Known Subinterfaces:
DualParameterOperation,SingleParameterOperation,SourceOperation
- All Known Implementing Classes:
MappingOperationChain,OperationChain
An Operation represents a math operation that has one input and an arbitrary number of parameters. When used with
Value.apply(Operation, MathContext, Numeral...) or any of the other apply methods in Value and
ValueMap, the Value is used as the input.-
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
getParameterCount
int getParameterCount()- Returns:
- the amount of parameters this operation expects
-
apply
- Specified by:
applyin interfaceBiFunction<Numeral,Numeral[], Numeral> - Parameters:
source- sourceNumeralfor this operationparameters- parameterNumeralsfor this operation- Returns:
- resulting
Numeralof this operation - Throws:
IllegalArgumentException- if the amount of parameters is not equal togetParameterCount()
-