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