@FunctionalInterface public interface IntSQLConsumer
int-valued argument and returns no result.
This is the SQLException throwing equivalent of IntConsumer.| Modifier and Type | Method and Description |
|---|---|
void |
accept(int value)
Performs this operation on the given argument.
|
default IntSQLConsumer |
andThen(IntSQLConsumer after)
Returns a composed
IntSQLConsumer that performs, in sequence, this operation followed by the after operation. |
static IntSQLConsumer |
checked(IntConsumer operation)
Returns an
IntSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is thrown
by throwing its cause. |
static IntConsumer |
unchecked(IntSQLConsumer operation)
Returns a
IntConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
void accept(int value)
throws SQLException
value - The input argument.SQLException - If an SQL error occurs.default IntSQLConsumer andThen(IntSQLConsumer after)
IntSQLConsumer 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.IntSQLConsumer that performs in sequence this operation followed by the after operation.NullPointerException - If after is null.static IntConsumer unchecked(IntSQLConsumer operation)
IntConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException.operation - The operation to perform when the returned operation is performed.IntConsumer that performs the operation operation on its input, and wraps any SQLException that is thrown
in an UncheckedSQLException.NullPointerException - If operation is null.static IntSQLConsumer checked(IntConsumer operation)
IntSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is thrown
by throwing its cause.operation - The operation to perform when the returned operation is performed.IntSQLConsumer 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.