T
- the type of the first argument to the operationU
- the type of the second argument to the operation@FunctionalInterface
public interface IOBiConsumer<T,U>
BiConsumer
but throws IOException
.BiConsumer
Modifier and Type | Method and Description |
---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
default IOBiConsumer<T,U> |
andThen(IOBiConsumer<? super T,? super U> after)
Creates a composed
IOBiConsumer that performs, in sequence, this operation followed by the after
operation. |
default java.util.function.BiConsumer<T,U> |
asBiConsumer()
Creates a
BiConsumer for this instance that throws UncheckedIOException instead of
IOException . |
static <T,U> IOBiConsumer<T,U> |
noop()
Returns the no-op singleton.
|
static <T,U> IOBiConsumer<T,U> noop()
T
- the type of the first argument to the operationU
- the type of the second argument to the operationvoid accept(T t, U u) throws java.io.IOException
t
- the first input argumentu
- the second input argumentjava.io.IOException
- if an I/O error occurs.default IOBiConsumer<T,U> andThen(IOBiConsumer<? super T,? super U> after)
IOBiConsumer
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 operationIOBiConsumer
that performs in sequence this operation followed by the after
operationjava.lang.NullPointerException
- if after
is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved