Package org.apache.flink.util.function
Interface BiFunctionWithException<T,U,R,E extends Throwable>
-
- Type Parameters:
T
- type of the first parameterU
- type of the second parameterR
- type of the return typeE
- type of the exception which can be thrown
- All Known Subinterfaces:
ChangelogBackendRestoreOperation.ChangelogRestoreTargetBuilder<K>
- 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 BiFunctionWithException<T,U,R,E extends Throwable>
BiFunction
interface which can throw exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(T t, U u)
Apply the given values t and u to obtain the resulting value.static <A,B,C>
BiFunction<A,B,C>unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)
Convert atBiFunctionWithException
into aBiFunction
.
-
-
-
Method Detail
-
apply
R apply(T t, U u) throws E extends Throwable
Apply the given values t and u to obtain the resulting value. The operation can throw an exception.
-
unchecked
static <A,B,C> BiFunction<A,B,C> unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)
Convert atBiFunctionWithException
into aBiFunction
.- Type Parameters:
A
- input typeB
- output type- Parameters:
biFunctionWithException
- function with exception to convert into a function- Returns:
BiFunction
which throws all checked exception as an unchecked exception.
-
-