T - The type of the first argument to the operation.U - The type of the second argument to the operation.@FunctionalInterface public interface IOBiConsumer<T,U>
IOException throwing equivalent of 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)
Returns a composed
IOBiConsumer that performs, in sequence, this operation followed by the after operation. |
static <T,U> IOBiConsumer<T,U> |
checked(BiConsumer<? super T,? super U> operation)
Returns an
IOBiConsumer that performs the operation operation, and unwraps any UncheckedIOException that is thrown by
throwing its cause. |
static <T,U> BiConsumer<T,U> |
unchecked(IOBiConsumer<? super T,? super U> operation)
Returns a
BiConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException. |
void accept(T t, U u) throws IOException
t - The first input argument.u - The second input argument.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 operation.IOBiConsumer that performs in sequence this operation followed by the after operation.NullPointerException - If after is null.static <T,U> BiConsumer<T,U> unchecked(IOBiConsumer<? super T,? super U> operation)
BiConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException.T - The type of the first argument to the operation.U - The type of the second argument to the operation.operation - The operation to perform when the returned operation is performed.BiConsumer that performs the operation operation on its input, and wraps any IOException that is thrown in
an UncheckedIOException.NullPointerException - If operation is null.static <T,U> IOBiConsumer<T,U> checked(BiConsumer<? super T,? super U> operation)
IOBiConsumer that performs the operation operation, and unwraps any UncheckedIOException that is thrown by
throwing its cause.T - The type of the first argument to the operation.U - The type of the second argument to the operation.operation - The operation to perform when the returned operation is performed.IOBiConsumer that performs the operation operation on its input, and unwraps any UncheckedIOException that
is thrown.NullPointerException - If the given operation is null.Copyright © 2017–2020. All rights reserved.