Package org.tensorics.core.functional
Interface Func4<T1,T2,T3,T4,R>
-
- Type Parameters:
T1- the first argument typeT2- the second argument typeT3- the third argument typeT4- the fourth argument typeR- the result type
- All Superinterfaces:
FiniteArgumentFunction<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Func4<T1,T2,T3,T4,R> extends FiniteArgumentFunction<R>
Represents a function with four arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Rapply(T1 t1, T2 t2, T3 t3, T4 t4)default intnumberOfArgs()The number of arguments that the function acceptsdefault FuncN<R>toFuncN()Transform this function to aFuncN, binding the arguments automatically.
-
-
-
Method Detail
-
toFuncN
default FuncN<R> toFuncN()
Description copied from interface:FiniteArgumentFunctionTransform this function to aFuncN, binding the arguments automatically.- Specified by:
toFuncNin interfaceFiniteArgumentFunction<T1>- Returns:
- the
FuncNrepresentation of this function
-
numberOfArgs
default int numberOfArgs()
Description copied from interface:FiniteArgumentFunctionThe number of arguments that the function accepts- Specified by:
numberOfArgsin interfaceFiniteArgumentFunction<T1>- Returns:
- the number of arguments
-
-