@FunctionalInterface public interface LongSQLPredicate
long-valued argument.
This is the SQLException throwing equivalent of LongPredicate.| Modifier and Type | Method and Description |
|---|---|
default LongSQLPredicate |
and(LongSQLPredicate other)
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
static LongSQLPredicate |
checked(LongPredicate predicate)
Returns a predicate that evaluates the
predicate predicate, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
default LongSQLPredicate |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default LongSQLPredicate |
or(LongSQLPredicate other)
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
boolean |
test(long value)
Evaluates this predicate on the given argument.
|
static LongPredicate |
unchecked(LongSQLPredicate predicate)
Returns a predicate that evaluates the
predicate predicate, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
boolean test(long value)
throws SQLException
value - The input argument.true if the input argument matches the predicate, otherwise false.SQLException - If an SQL error occurs.default LongSQLPredicate and(LongSQLPredicate other)
false, then the other predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller;
if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - A predicate that will be logically-ANDed with this predicate.other predicate.NullPointerException - If other is null.default LongSQLPredicate negate()
default LongSQLPredicate or(LongSQLPredicate other)
true, then the other predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller;
if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - A predicate that will be logically-ORed with this predicate.other predicate.NullPointerException - If other is null.static LongPredicate unchecked(LongSQLPredicate predicate)
predicate predicate, and wraps any SQLException that is thrown in an
UncheckedSQLException.predicate - The predicate to evaluate when the returned predicate is evaluated.predicate predicate on its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If predicate is null.static LongSQLPredicate checked(LongPredicate predicate)
predicate predicate, and unwraps any UncheckedSQLException that is thrown by
throwing its cause.predicate - The predicate to evaluate when the returned predicate is evaluated.predicate operation on its input, and unwraps any UncheckedSQLException that is thrown.NullPointerException - If the given operation is null.Copyright © 2017. All rights reserved.