Interface ThrowableDoubleConsumer
- All Superinterfaces:
DoubleConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation that accepts a single
double-valued argument and returns no
result. This is the primitive type specialization of ThrowableConsumer for
double. Unlike most other functional interfaces, DoubleConsumer is expected to operate
via side-effects.
Permits checked exceptions unlike DoubleConsumer
This is a functional interface whose functional method is
accept(double).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(double value) Performs this operation on the given argument.voidacceptUnsafe(double value) Performs this operation on the given argument.Methods inherited from interface java.util.function.DoubleConsumer
andThen
-
Method Details
-
acceptUnsafe
Performs this operation on the given argument.- Parameters:
value- the input argument- Throws:
Throwable- occurred during processing
-
accept
default void accept(double value) Performs this operation on the given argument.- Specified by:
acceptin interfaceDoubleConsumer- Parameters:
value- the input argument
-