@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<java.lang.Integer> |
asConsumer()
Creates a
Consumer for this instance that throws UncheckedIOException instead of IOException. |
default java.util.function.IntConsumer |
asIntConsumer()
Creates an
IntConsumer for this instance that throws UncheckedIOException instead of IOException. |
static final IOIntConsumer NOOP
void accept(int value)
throws java.io.IOException
value - the input argumentjava.io.IOException - 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 operationjava.lang.NullPointerException - if after is nulldefault java.util.function.Consumer<java.lang.Integer> asConsumer()
Consumer for this instance that throws UncheckedIOException instead of IOException.default java.util.function.IntConsumer asIntConsumer()
IntConsumer for this instance that throws UncheckedIOException instead of IOException.Copyright © 2010 - 2025 Adobe. All Rights Reserved