Package org.apache.flink.util.function
Interface ThrowingConsumer<T,E extends Throwable>
-
- Type Parameters:
T
- type of the consumed elements.E
- type of the exception thrown.
- 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 ThrowingConsumer<T,E extends Throwable>
This interface is basically Java'sConsumer
interface enhanced with the ability to throw an exception.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t)
Performs this operation on the given argument.static <A> Consumer<A>
unchecked(ThrowingConsumer<A,?> throwingConsumer)
Convert aThrowingConsumer
into aConsumer
.
-
-
-
Method Detail
-
unchecked
static <A> Consumer<A> unchecked(ThrowingConsumer<A,?> throwingConsumer)
Convert aThrowingConsumer
into aConsumer
.
-
-