@FunctionalInterface public interface IOIntConsumer
IntConsumer but throws IOException.| Modifier and Type | Field and Description |
|---|---|
static IOIntConsumer |
NOOP
The constant no-op consumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(int value)
Performs this operation on the given argument.
|
default IOIntConsumer |
andThen(IOIntConsumer after)
Returns a composed
IOIntConsumer that performs, in sequence, this operation followed by the after operation. |
default java.util.function.Consumer<Integer> |
asConsumer()
|
default java.util.function.IntConsumer |
asIntConsumer()
|
static final IOIntConsumer NOOP
void accept(int value)
throws IOException
value - the input argumentIOException - if an I/O error occurs.default IOIntConsumer andThen(IOIntConsumer after)
IOIntConsumer 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 operationIOIntConsumer that performs in sequence this operation followed by the after operationNullPointerException - if after is nulldefault java.util.function.Consumer<Integer> asConsumer()
default java.util.function.IntConsumer asIntConsumer()