@FunctionalInterface public interface LongBinarySQLOperator
long-valued operands and producing a long-valued result.
This is the SQLException throwing equivalent of LongBinaryOperator.| Modifier and Type | Method and Description |
|---|---|
long |
applyAsLong(long left,
long right)
Applies this operator to the given operands.
|
static LongBinarySQLOperator |
checked(LongBinaryOperator 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 LongBinaryOperator |
unchecked(LongBinarySQLOperator operator)
Returns a binary operator that applies the
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
long applyAsLong(long left,
long right)
throws SQLException
left - The first operand.right - The second operand.SQLException - If an SQL error occurs.static LongBinaryOperator unchecked(LongBinarySQLOperator 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 LongBinarySQLOperator checked(LongBinaryOperator 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.