Package com.google.mu.function
Interface CheckedIntConsumer<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.
An int consumer that can throw checked exceptions.
- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(int input) default CheckedIntConsumer
<E> andThen
(CheckedIntConsumer<E> that) Returns a newCheckedIntConsumer
that also passes the input tothat
.
-
Method Details
-
accept
void accept(int input) throws E - Throws:
E
-
andThen
Returns a newCheckedIntConsumer
that also passes the input tothat
. For example:out::writeInt.andThen(logger::logInt).accept(123)
.
-