I - the type of the input to the functionT - the type of Throwable thrown@FunctionalInterface public interface ThrowingConsumer<I,T extends Throwable>
Consumer is expected
to operate via side-effects.
This is a functional interface
whose functional method is accept(Object).
| Modifier and Type | Method and Description |
|---|---|
void |
accept(I in)
Performs this operation on the given argument.
|
static <I,T extends Throwable> |
asConsumer(ThrowingConsumer<I,T> function) |
static <I,T extends Throwable> java.util.function.Consumer<I> asConsumer(@NotNull ThrowingConsumer<I,T> function)
Copyright © 2017. All rights reserved.