Interface FailableLongPredicate<E extends java.lang.Throwable>
-
- Type Parameters:
E- The kind of thrown exception or error.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FailableLongPredicate<E extends java.lang.Throwable>A functional interface likeLongPredicatethat declares aThrowable.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description static FailableLongPredicateFALSEFALSE singletonstatic FailableLongPredicateTRUETRUE singleton
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FailableLongPredicate<E>and(FailableLongPredicate<E> other)Returns a composedFailableLongPredicatelikeLongPredicate.and(LongPredicate).static <E extends java.lang.Throwable>
FailableLongPredicate<E>falsePredicate()Returns The FALSE singleton.default FailableLongPredicate<E>negate()Returns a predicate that negates this predicate.default FailableLongPredicate<E>or(FailableLongPredicate<E> other)Returns a composedFailableLongPredicatelikeLongPredicate.and(LongPredicate).booleantest(long value)Tests the predicate.static <E extends java.lang.Throwable>
FailableLongPredicate<E>truePredicate()Returns The TRUE singleton.
-
-
-
Field Detail
-
FALSE
static final FailableLongPredicate FALSE
FALSE singleton
-
TRUE
static final FailableLongPredicate TRUE
TRUE singleton
-
-
Method Detail
-
falsePredicate
static <E extends java.lang.Throwable> FailableLongPredicate<E> falsePredicate()
Returns The FALSE singleton.- Type Parameters:
E- The kind of thrown exception or error.- Returns:
- The NOP singleton.
-
truePredicate
static <E extends java.lang.Throwable> FailableLongPredicate<E> truePredicate()
Returns The TRUE singleton.- Type Parameters:
E- The kind of thrown exception or error.- Returns:
- The NOP singleton.
-
and
default FailableLongPredicate<E> and(FailableLongPredicate<E> other)
Returns a composedFailableLongPredicatelikeLongPredicate.and(LongPredicate).- Parameters:
other- a predicate that will be logically-ANDed with this predicate.- Returns:
- a composed
FailableLongPredicatelikeLongPredicate.and(LongPredicate). - Throws:
java.lang.NullPointerException- if other is null
-
negate
default FailableLongPredicate<E> negate()
Returns a predicate that negates this predicate.- Returns:
- a predicate that negates this predicate.
-
or
default FailableLongPredicate<E> or(FailableLongPredicate<E> other)
Returns a composedFailableLongPredicatelikeLongPredicate.and(LongPredicate).- Parameters:
other- a predicate that will be logically-ORed with this predicate.- Returns:
- a composed
FailableLongPredicatelikeLongPredicate.and(LongPredicate). - Throws:
java.lang.NullPointerException- if other is null
-
test
boolean test(long value) throws E extends java.lang.ThrowableTests the predicate.
-
-