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 BiConsumer<T,U> |
asBiConsumer()
|
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 IOException
t - the first input argumentu - the second input argumentIOException - 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
operationNullPointerException - if after is nulldefault BiConsumer<T,U> asBiConsumer()
UncheckedIOException - Wraps an IOException.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.