Package org.nuxeo.common.function
Interface ThrowablePredicate<T,E extends Throwable>
- Type Parameters:
T
- the type of the input to the predicateE
- the type of exception to throw
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptionasPredicate
(ThrowablePredicate<T, E> throwablePredicate) boolean
-
Method Details
-
test
- Throws:
E
-
toPredicate
- Returns:
- this
ThrowablePredicate
as aPredicate
throwing the checked exception as an unchecked one
-
asPredicate
static <T,R, Predicate<T> asPredicateE extends Throwable> (ThrowablePredicate<T, E> throwablePredicate) - Returns:
- the given
ThrowablePredicate
as aPredicate
throwing the checked exception as an unchecked one
-