T - The type of the first argument to the operation.U - The type of the second argument to the operation.@FunctionalInterface public interface SQLBiConsumer<T,U>
SQLException throwing equivalent of BiConsumer.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
default SQLBiConsumer<T,U> |
andThen(SQLBiConsumer<? super T,? super U> after)
Returns a composed
SQLBiConsumer that performs, in sequence, this operation followed by the after operation. |
static <T,U> SQLBiConsumer<T,U> |
checked(BiConsumer<? super T,? super U> operation)
Returns an
SQLBiConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
static <T,U> BiConsumer<T,U> |
unchecked(SQLBiConsumer<? super T,? super U> operation)
Returns a
BiConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
void accept(T t, U u) throws SQLException
t - The first input argument.u - The second input argument.SQLException - If an SQL error occurs.default SQLBiConsumer<T,U> andThen(SQLBiConsumer<? super T,? super U> after)
SQLBiConsumer 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.SQLBiConsumer that performs in sequence this operation followed by the after operation.NullPointerException - If after is null.static <T,U> BiConsumer<T,U> unchecked(SQLBiConsumer<? super T,? super U> operation)
BiConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException.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 SQLException that is thrown in
an UncheckedSQLException.NullPointerException - If operation is null.static <T,U> SQLBiConsumer<T,U> checked(BiConsumer<? super T,? super U> operation)
SQLBiConsumer that performs the operation operation, and unwraps any UncheckedSQLException 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.SQLBiConsumer that performs the operation operation on its input, and unwraps any UncheckedSQLException that
is thrown.NullPointerException - If the given operation is null.Copyright © 2017. All rights reserved.