@FunctionalInterface public interface DoubleIOConsumer
double
-valued argument and returns no result.
This is the IOException
throwing equivalent of DoubleConsumer
.Modifier and Type | Method and Description |
---|---|
void |
accept(double value)
Performs this operation on the given argument.
|
default DoubleIOConsumer |
andThen(DoubleIOConsumer after)
Returns a composed
DoubleIOConsumer that performs, in sequence, this operation followed by the after operation. |
static DoubleIOConsumer |
checked(DoubleConsumer operation)
Returns an
DoubleIOConsumer that performs the operation operation, and unwraps any UncheckedIOException that is thrown
by throwing its cause . |
static DoubleConsumer |
unchecked(DoubleIOConsumer operation)
Returns a
DoubleConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException . |
void accept(double value) throws IOException
value
- The input argument.IOException
- If an I/O error occurs.default DoubleIOConsumer andThen(DoubleIOConsumer after)
DoubleIOConsumer
that performs, in sequence, this operation followed by the after
operation.
If performing either operation throws an exception, it is relayed to the caller of the composed operation.
If performing this operation throws an exception, the after
operation will not be performed.after
- The operation to perform after this operation.DoubleIOConsumer
that performs in sequence this operation followed by the after
operation.NullPointerException
- If after
is null
.static DoubleConsumer unchecked(DoubleIOConsumer operation)
DoubleConsumer
that performs the operation
operation, and wraps any IOException
that is thrown in an
UncheckedIOException
.operation
- The operation to perform when the returned operation is performed.DoubleConsumer
that performs the operation
operation on its input, and wraps any IOException
that is thrown
in an UncheckedIOException
.NullPointerException
- If operation
is null
.static DoubleIOConsumer checked(DoubleConsumer operation)
DoubleIOConsumer
that performs the operation
operation, and unwraps any UncheckedIOException
that is thrown
by throwing its cause
.operation
- The operation to perform when the returned operation is performed.DoubleIOConsumer
that performs the operation
operation on its input, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If the given operation is null
.Copyright © 2017–2020. All rights reserved.