Interface FailablePredicate<T,E extends Throwable> 
- Type Parameters:
- T- Predicate type.
- 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.
- Since:
- 3.11
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final FailablePredicateFALSE singletonstatic final FailablePredicateTRUE singleton
- 
Method SummaryModifier and TypeMethodDescriptiondefault FailablePredicate<T,E> and(FailablePredicate<? super T, E> other) Returns a composedFailablePredicatelikePredicate.and(Predicate).static <T,E extends Throwable> 
 FailablePredicate<T,E> 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 composedFailablePredicatelikePredicate.and(Predicate).booleanTests the predicate.static <T,E extends Throwable> 
 FailablePredicate<T,E> Returns The TRUE singleton.
- 
Field Details- 
FALSEFALSE singleton
- 
TRUETRUE singleton
 
- 
- 
Method Details- 
falsePredicateReturns The FALSE singleton.- Type Parameters:
- T- Predicate type.
- E- The kind of thrown exception or error.
- Returns:
- The NOP singleton.
 
- 
truePredicateReturns The TRUE singleton.- Type Parameters:
- T- Predicate type.
- E- The kind of thrown exception or error.
- Returns:
- The NOP singleton.
 
- 
andReturns a composedFailablePredicatelikePredicate.and(Predicate).- Parameters:
- other- a predicate that will be logically-ANDed with this predicate.
- Returns:
- a composed FailablePredicatelikePredicate.and(Predicate).
- Throws:
- NullPointerException- if other is null
 
- 
negateReturns a predicate that negates this predicate.- Returns:
- a predicate that negates this predicate.
 
- 
orReturns a composedFailablePredicatelikePredicate.and(Predicate).- Parameters:
- other- a predicate that will be logically-ORed with this predicate.
- Returns:
- a composed FailablePredicatelikePredicate.and(Predicate).
- Throws:
- NullPointerException- if other is null
 
- 
testTests the predicate.- Parameters:
- object- the object to test the predicate on
- Returns:
- the predicate's evaluation
- Throws:
- E- if the predicate fails
 
 
-