Interface SingleParameterOperation
- All Superinterfaces:
BiFunction<Numeral,,Numeral[], Numeral> Operation
An
Operation that takes in one parameter along with an input.-
Method Summary
Modifier and TypeMethodDescriptiondefault NumeralIt is recommended to useapply(Numeral, Numeral)where possible instead.default intMethods 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 (1)
-
apply
It is recommended to useapply(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()(1)
-