Package io.smallrye.common.function
Interface ExceptionConsumer<T,E extends Exception>
-
- 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 ExceptionConsumer<T,E extends Exception>
A one-argument consumer which can throw an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(T t)Performs this operation on the given argument.default ExceptionConsumer<T,E>andThen(ExceptionConsumer<? super T,? extends E> after)default ExceptionConsumer<T,E>compose(ExceptionConsumer<? super T,? extends E> before)default ExceptionRunnable<E>compose(ExceptionSupplier<? extends T,? extends E> before)
-
-
-
Method Detail
-
andThen
default ExceptionConsumer<T,E> andThen(ExceptionConsumer<? super T,? extends E> after)
-
compose
default ExceptionConsumer<T,E> compose(ExceptionConsumer<? super T,? extends E> before)
-
compose
default ExceptionRunnable<E> compose(ExceptionSupplier<? extends T,? extends E> before)
-
-