Interface CheckedLongConsumer<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 64-bit long consumer that can throw checked exceptions.
- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(long input) default CheckedLongConsumer<E> andThen(CheckedLongConsumer<E> that) Returns a newCheckedLongConsumerthat also passes the input tothat.
-
Method Details
-
accept
void accept(long input) throws E - Throws:
E
-
andThen
Returns a newCheckedLongConsumerthat also passes the input tothat. For example:out::writeLong.andThen(logger::logLong).accept(123L).
-