Package org.apache.flink.util.function
Interface BiConsumerWithException<T,U,E extends Throwable>
-
- Type Parameters:
T- type of the first argumentU- type of the second argumentE- type of the thrown exception
- 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 BiConsumerWithException<T,U,E extends Throwable>
A checked extension of theBiConsumerinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T t, U u)Performs this operation on the given arguments.static <A,B>
java.util.function.BiConsumer<A,B>unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)Convert aBiConsumerWithExceptioninto aBiConsumer.
-
-
-
Method Detail
-
accept
void accept(T t, U u) throws E extends Throwable
Performs this operation on the given arguments.
-
unchecked
static <A,B> java.util.function.BiConsumer<A,B> unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)
Convert aBiConsumerWithExceptioninto aBiConsumer.- Type Parameters:
A- first input typeB- second input type- Parameters:
biConsumerWithException- BiConsumer with exception to convert into aBiConsumer.- Returns:
BiConsumerwhich rethrows all checked exceptions as unchecked.
-
-