T - Predicate type.E - The kind of thrown exception or error.@FunctionalInterface
public interface FailablePredicate<T,E extends java.lang.Throwable>
Predicate that declares a Throwable.| Modifier and Type | Field and Description |
|---|---|
static FailablePredicate |
FALSE
FALSE singleton
|
static FailablePredicate |
TRUE
TRUE singleton
|
| Modifier and Type | Method and Description |
|---|---|
default FailablePredicate<T,E> |
and(FailablePredicate<? super T,E> other)
Returns a composed
FailablePredicate like Predicate.and(Predicate). |
static <T,E extends java.lang.Throwable> |
falsePredicate()
Returns The FALSE singleton.
|
default FailablePredicate<T,E> |
negate()
Returns a predicate that negates this predicate.
|
default FailablePredicate<T,E> |
or(FailablePredicate<? super T,E> other)
Returns a composed
FailablePredicate like Predicate.and(Predicate). |
boolean |
test(T object)
Tests the predicate.
|
static <T,E extends java.lang.Throwable> |
truePredicate()
Returns The TRUE singleton.
|
static final FailablePredicate FALSE
static final FailablePredicate TRUE
static <T,E extends java.lang.Throwable> FailablePredicate<T,E> falsePredicate()
T - Predicate type.E - The kind of thrown exception or error.static <T,E extends java.lang.Throwable> FailablePredicate<T,E> truePredicate()
T - Predicate type.E - The kind of thrown exception or error.default FailablePredicate<T,E> and(FailablePredicate<? super T,E> other)
FailablePredicate like Predicate.and(Predicate).other - a predicate that will be logically-ANDed with this predicate.FailablePredicate like Predicate.and(Predicate).java.lang.NullPointerException - if other is nulldefault FailablePredicate<T,E> negate()
default FailablePredicate<T,E> or(FailablePredicate<? super T,E> other)
FailablePredicate like Predicate.and(Predicate).other - a predicate that will be logically-ORed with this predicate.FailablePredicate like Predicate.and(Predicate).java.lang.NullPointerException - if other is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved