Package com.globalmentor.io.function
Interface IODoubleConsumer
- 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
Consumer
for double
. Unlike most other functional interfaces, DoubleConsumer
is expected to operate via side-effects.
This interface is similar to DoubleConsumer
except that it is allowed to throw an IOException
.
- Author:
- Magno N A Cruz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(double value) This method is the same asDoubleConsumer.accept(double)
, but with a support forIOException
.default IODoubleConsumer
andThen
(IODoubleConsumer after) This method is the same asDoubleConsumer.andThen(DoubleConsumer)
, but with a support forIOException
.
-
Method Details
-
accept
This method is the same as
DoubleConsumer.accept(double)
, but with a support forIOException
.- Parameters:
value
- The input argument.- Throws:
IOException
- if there is an I/O error performing the operation.
-
andThen
This method is the same as
DoubleConsumer.andThen(DoubleConsumer)
, but with a support forIOException
.- Parameters:
after
- The operation to perform after this operation.- Returns:
- A composed
DoubleConsumer
that performs in sequence this operation followed by theafter
operation. - Throws:
IOException
- if there is an I/O error performing the operation.
-