@FunctionalInterface public interface DoubleBinarySQLOperator
double-valued operands and producing a double-valued result.
This is the SQLException throwing equivalent of DoubleBinaryOperator.| Modifier and Type | Method and Description |
|---|---|
double |
applyAsDouble(double left,
double right)
Applies this operator to the given operands.
|
static DoubleBinarySQLOperator |
checked(DoubleBinaryOperator operator)
Returns a binary operator that applies the
operator operator to its input, and unwraps any UncheckedSQLException that is thrown
by throwing its cause. |
static DoubleBinaryOperator |
unchecked(DoubleBinarySQLOperator operator)
Returns a binary operator that applies the
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
double applyAsDouble(double left,
double right)
throws SQLException
left - The first operand.right - The second operand.SQLException - If an SQL error occurs.static DoubleBinaryOperator unchecked(DoubleBinarySQLOperator operator)
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.operator - The binary operator to apply when the returned binary operator is applied.operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If operator is null.static DoubleBinarySQLOperator checked(DoubleBinaryOperator operator)
operator operator to its input, and unwraps any UncheckedSQLException that is thrown
by throwing its cause.operator - The binary operator to apply when the returned binary operator is applied.operator operator to its input, and unwraps any UncheckedSQLException that is
thrown.NullPointerException - If operator is null.Copyright © 2017. All rights reserved.