Package no.digipost.function
Interface ThrowingConsumer<T,X extends Throwable>
-
- 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 ThrowingConsumer<T,X extends Throwable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(T t)default ThrowingConsumer<T,X>andThen(ThrowingConsumer<? super T,? extends X> after)default Consumer<T>asUnchecked()default Consumer<T>ifException(BiConsumer<? super T,Exception> exceptionHandler)default Consumer<T>ifException(Consumer<Exception> exceptionHandler)
-
-
-
Method Detail
-
ifException
default Consumer<T> ifException(BiConsumer<? super T,Exception> exceptionHandler)
-
andThen
default ThrowingConsumer<T,X> andThen(ThrowingConsumer<? super T,? extends X> after)
-
-