Package org.tensorics.core.functional
Interface Func1<T,R>
-
- Type Parameters:
T- the first 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 Func1<T,R> extends FiniteArgumentFunction<R>
Represents a function with one argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Rapply(T t)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<T>- 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<T>- Returns:
- the number of arguments
-
-