-
public interface ThrowingConsumer<T>A consumer that permits throwing a checkedException.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(T t)default java.util.function.Consumer<T>toUnchecked()Converts this consumer to aConsumer.
-
-
-
Method Detail
-
accept
void accept(T t) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toUnchecked
default java.util.function.Consumer<T> toUnchecked()
Converts this consumer to aConsumer. If this consumer throws a checked exception, the returned consumer wraps the former in aCompletionException.
-
-