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 TypeMethodDescriptionvoidaccept(int input) default CheckedIntConsumer<E> andThen(CheckedIntConsumer<E> that) Returns a newCheckedIntConsumerthat also passes the input tothat.
-
Method Details
-
accept
void accept(int input) throws E - Throws:
E
-
andThen
Returns a newCheckedIntConsumerthat also passes the input tothat. For example:out::writeInt.andThen(logger::logInt).accept(123).
-