@FunctionalInterface
public interface ExceptionConsumer<T>
Exception.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T input)
Performs an operation on the given input.
|
static <T> java.util.function.Consumer<T> |
asConsumer(ExceptionConsumer<T> exceptionConsumer)
|
void accept(@NonNull
T input)
throws java.lang.Exception
input - the inputjava.lang.Exception@NonNull
static <T> java.util.function.Consumer<T> asConsumer(@NonNull
ExceptionConsumer<T> exceptionConsumer)
exceptionConsumer - the consumer that can throw an exception