Module com.machinezoo.noexception
Interface ThrowingDoubleConsumer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingDoubleConsumer
Variation ofDoubleConsumer
that allows throwing checked exceptions.ThrowingDoubleConsumer
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromDoubleConsumer(ThrowingDoubleConsumer)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(double value)
Variation ofDoubleConsumer.accept(double)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(double value) throws Throwable
Variation ofDoubleConsumer.accept(double)
that allows throwing checked exceptions.- Parameters:
-
value
- seeDoubleConsumer.accept(double)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleConsumer(ThrowingDoubleConsumer)
,DoubleConsumer.accept(double)
-
-