Package org.apache.flink.util.function
Interface FunctionWithException<T,R,E extends Throwable>
-
- Type Parameters:
T
- The type of the argument to the function.R
- The type of the result of the supplier.E
- The type of Exceptions thrown by this function.
- All Known Subinterfaces:
ChangelogBackendRestoreOperation.BaseBackendBuilder<K>
- All Known Implementing Classes:
RefCountedTmpFileCreator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Public @FunctionalInterface public interface FunctionWithException<T,R,E extends Throwable>
A functional interface for aFunction
that may throw exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(T value)
Calls this function.static <A,B>
Function<A,B>unchecked(FunctionWithException<A,B,?> functionWithException)
Convert atFunctionWithException
into aFunction
.
-
-
-
Method Detail
-
unchecked
static <A,B> Function<A,B> unchecked(FunctionWithException<A,B,?> functionWithException)
Convert atFunctionWithException
into aFunction
.- Type Parameters:
A
- input typeB
- output type- Parameters:
functionWithException
- function with exception to convert into a function- Returns:
Function
which throws all checked exception as an unchecked exception.
-
-