@FunctionalInterface public interface ThrowingDoubleConsumer
DoubleConsumer
that allows throwing checked exceptions. ThrowingDoubleConsumer
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromDoubleConsumer(ThrowingDoubleConsumer)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
void |
accept(double value)
Variation of DoubleConsumer.accept(double) that allows throwing checked exceptions.
|
void accept(double value) throws Throwable
DoubleConsumer.accept(double)
that allows throwing checked exceptions.
value
- see DoubleConsumer.accept(double)
Throwable
- if unable to complete
CheckedExceptionHandler.fromDoubleConsumer(ThrowingDoubleConsumer)
, DoubleConsumer.accept(double)
Copyright © 2017–2020 Robert Važan. All rights reserved.