Interface CheckedDoubleConsumer<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 double-value consumer that can throw checked exceptions.
- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(double input) default CheckedDoubleConsumer<E> andThen(CheckedDoubleConsumer<E> that) Returns a newCheckedDoubleConsumerthat also passes the input tothat.
-
Method Details
-
accept
void accept(double input) throws E - Throws:
E
-
andThen
Returns a newCheckedDoubleConsumerthat also passes the input tothat. For example:out::writeDouble.andThen(logger::logDouble).accept(123D).
-