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()
|
static <T,U> IOBiConsumer<T,U> |
noop()
Returns the no-op singleton.
|
void 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 java.util.function.BiConsumer<T,U> asBiConsumer()
UncheckedIOException - Wraps an IOException.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 operation