T - Predicate type.E - Thrown exception.@FunctionalInterface public interface FailablePredicate<T,E extends 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 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 Throwable> |
truePredicate()
Returns The FALSE TRUE.
|
static final FailablePredicate FALSE
static final FailablePredicate TRUE
static <T,E extends Throwable> FailablePredicate<T,E> falsePredicate()
T - Predicate type.E - Thrown exception.static <T,E extends Throwable> FailablePredicate<T,E> truePredicate()
T - Predicate type.E - Thrown exception.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).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).NullPointerException - if other is nullCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.