Interface CheckedConsumer<T, E extends Throwable>
- Type Parameters:
T
-E
- the exception that is thrown
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Identical to Consumer except that the accept(Object)
method may throw a checked exception.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default CheckedConsumer
<T, E> andThen
(CheckedConsumer<T, E> after)
-
Method Details
-
accept
- Throws:
E
-
andThen
-