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
- All Known Implementing Classes:
MergingWindowProcessFunction.DefaultAccMergingConsumer
- 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 theBiConsumer
interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t, U u)
Performs this operation on the given arguments.static <A,B>
BiConsumer<A,B>unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)
Convert aBiConsumerWithException
into 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> BiConsumer<A,B> unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)
Convert aBiConsumerWithException
into aBiConsumer
.- Type Parameters:
A
- first input typeB
- second input type- Parameters:
biConsumerWithException
- BiConsumer with exception to convert into aBiConsumer
.- Returns:
BiConsumer
which rethrows all checked exceptions as unchecked.
-
-