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