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