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 ofDoubleConsumerthat allows throwing checked exceptions.ThrowingDoubleConsumeris 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 voidaccept(double value)Variation ofDoubleConsumer.accept(double)that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(double value) throws ThrowableVariation 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)
-
-