T - The type of the object argument to the operation.@FunctionalInterface public interface ObjIntSQLConsumer<T>
int-valued argument, and returns no result.
This is the SQLException throwing equivalent of ObjIntConsumer.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
int value)
Performs this operation on the given arguments.
|
static <T> ObjIntSQLConsumer<T> |
checked(ObjIntConsumer<? super T> operation)
Returns an
ObjIntSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is
thrown by throwing its cause. |
static <T> ObjIntConsumer<T> |
unchecked(ObjIntSQLConsumer<? super T> operation)
Returns an
ObjIntConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
void accept(T t, int value) throws SQLException
t - The first input argument.value - The second input argument.SQLException - If an SQL error occurs.static <T> ObjIntConsumer<T> unchecked(ObjIntSQLConsumer<? super T> operation)
ObjIntConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException.T - The type of the object argument to the operation.operation - The operation to perform when the returned operation is performed.ObjIntConsumer 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> ObjIntSQLConsumer<T> checked(ObjIntConsumer<? super T> operation)
ObjIntSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is
thrown by throwing its cause.T - The type of the input to the operation.operation - The operation to perform when the returned operation is performed.ObjIntSQLConsumer 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.