Package com.google.mu.function
Interface CheckedConsumer<T,E 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.
A consumer that can throw checked exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default CheckedConsumer
<T, E> andThen
(CheckedConsumer<? super T, E> that) Returns a newCheckedConsumer
that also passes the input tothat
.
-
Method Details
-
accept
- Throws:
E
-
andThen
Returns a newCheckedConsumer
that also passes the input tothat
. For example:out::writeObject.andThen(logger::info).accept("message")
.
-