T - The type of the operands and result of the operator.@FunctionalInterface public interface BinarySQLOperator<T> extends SQLBiFunction<T,T,T>
SQLException throwing equivalent of BinaryOperator.| Modifier and Type | Method and Description |
|---|---|
static <T> BinarySQLOperator<T> |
checked(BinaryOperator<T> 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 <T> BinarySQLOperator<T> |
maxBy(Comparator<? super T> comparator)
Returns an
BinarySQLOperator which returns the greater of two elements according to the specified Comparator. |
static <T> BinarySQLOperator<T> |
minBy(Comparator<? super T> comparator)
Returns an
BinarySQLOperator which returns the lesser of two elements according to the specified Comparator. |
static <T> BinaryOperator<T> |
unchecked(BinarySQLOperator<T> operator)
Returns a binary operator that applies the
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
andThen, apply, checked, uncheckedstatic <T> BinarySQLOperator<T> minBy(Comparator<? super T> comparator)
BinarySQLOperator which returns the lesser of two elements according to the specified Comparator.T - The type of the input arguments of the comparator.comparator - A Comparator for comparing the two values.BinarySQLOperator which returns the lesser of its operands, according to the supplied Comparator.NullPointerException - If comparator is null.static <T> BinarySQLOperator<T> maxBy(Comparator<? super T> comparator)
BinarySQLOperator which returns the greater of two elements according to the specified Comparator.T - The type of the input arguments of the comparator.comparator - A Comparator for comparing the two values.BinaryOperator which returns the greater of its operands, according to the supplied Comparator.NullPointerException - If comparator is null.static <T> BinaryOperator<T> unchecked(BinarySQLOperator<T> operator)
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.T - The type of the operands and result of the operator.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 <T> BinarySQLOperator<T> checked(BinaryOperator<T> operator)
operator operator to its input, and unwraps any UncheckedSQLException that is thrown
by throwing its cause.T - The type of the input and output of the operator.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.