Interface ThrowableFunctionalInterfaces.Function<T,R,X extends Exception>
-
- Type Parameters:
T
- the type of the input to the functionR
- the type of the result of the functionX
- the type of exception to be thrown by the function
- Enclosing interface:
- ThrowableFunctionalInterfaces
- 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 static interface ThrowableFunctionalInterfaces.Function<T,R,X extends Exception>
ExtendedFunction<T, R>
functional interface which allows theapply
method to throw an exception of type X.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(T t)
Applies this function to the given argument.static <T,R,X extends Exception>
ThrowableFunctionalInterfaces.Function<T,R,X>of(Function<T,R> function)
Wraps the given function into a throwable function
-
-
-
Method Detail
-
of
static <T,R,X extends Exception> ThrowableFunctionalInterfaces.Function<T,R,X> of(Function<T,R> function)
Wraps the given function into a throwable function- Type Parameters:
T
- the type of the input to the functionR
- the type of the result of the functionX
- the type of exception to be thrown by the function- Parameters:
function
- The function to wrap- Returns:
- The given function wrapped as a throwable function object
-
-