E - the type of exception could be thrown while performing operation@FunctionalInterface
public interface LongPredicateEx<E extends java.lang.Throwable>
long-valued
argument. This is the long-consuming primitive type specialization of
PredicateEx.
This is a functional interface
whose functional method is test(long).
PredicateEx| Modifier and Type | Method and Description |
|---|---|
default LongPredicateEx |
and(LongPredicateEx other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default <C extends java.lang.Throwable> |
cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default BooleanSupplierEx<E> |
fix(long value) |
default LongPredicateEx |
negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default LongPredicateEx |
or(LongPredicateEx 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.
|
default java.util.function.LongPredicate |
unchecked() |
default java.util.function.LongPredicate |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongPredicate |
unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongPredicate |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongPredicate |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
boolean test(long value)
throws E extends java.lang.Throwable
value - the input argumenttrue if the input argument matches the predicate,
otherwise falseE extends java.lang.Throwabledefault LongPredicateEx and(LongPredicateEx 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
predicateother predicatejava.lang.NullPointerException - if other is nulldefault LongPredicateEx negate()
default LongPredicateEx or(LongPredicateEx 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
predicateother predicatejava.lang.NullPointerException - if other is nulldefault BooleanSupplierEx<E> fix(long value)
default <C extends java.lang.Throwable> LongPredicateEx<C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongPredicateEx<C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongPredicateEx<C> cover(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongPredicateEx<C> cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default java.util.function.LongPredicate unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongPredicate unchecked()
default java.util.function.LongPredicate unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongPredicate unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongPredicate unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)