Interface DualParameterOperation
- All Superinterfaces:
BiFunction<Numeral,,Numeral[], Numeral> Operation
An
Operation that takes in two parameters along with an input.-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
-
getParameterCount
default int getParameterCount()- Specified by:
getParameterCountin interfaceOperation- Returns:
- the amount of parameters this operation expects (2)
-
apply
It is recommended to useapply(Numeral, Numeral, Numeral)where possible instead.- Specified by:
applyin interfaceBiFunction<Numeral,Numeral[], Numeral> - Specified by:
applyin interfaceOperation- Parameters:
source- sourceNumeralfor this operationparameters- parameterNumeralsfor this operation- Returns:
- resulting
Numeralof this operation - Throws:
IllegalArgumentException- if the amount of parameters is not equal togetParameterCount()(2)
-