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
- 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>
BiFunctioninterface which can throw exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T t, U u)Apply the given values t and u to obtain the resulting value.static <A,B,C>
java.util.function.BiFunction<A,B,C>unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)Convert atBiFunctionWithExceptioninto 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> java.util.function.BiFunction<A,B,C> unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)
Convert atBiFunctionWithExceptioninto aBiFunction.- Type Parameters:
A- input typeB- output type- Parameters:
biFunctionWithException- function with exception to convert into a function- Returns:
BiFunctionwhich throws all checked exception as an unchecked exception.
-
-