Package aQute.lib.exceptions
Interface PredicateWithException<T>
- Type Parameters:
T
- the type of the argument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Predicate interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
asPredicate
(PredicateWithException<T> unchecked) static <T> Predicate<T>
asPredicateOrElse
(PredicateWithException<T> unchecked, boolean orElse) static <T> Predicate<T>
asPredicateOrElseGet
(PredicateWithException<T> unchecked, BooleanSupplier orElseGet) orElse
(boolean orElse) orElseGet
(BooleanSupplier orElseGet) boolean
-
Method Details
-
test
- Throws:
Exception
-
orElseThrow
-
orElse
-
orElseGet
-
asPredicate
-
asPredicateOrElse
-
asPredicateOrElseGet
static <T> Predicate<T> asPredicateOrElseGet(PredicateWithException<T> unchecked, BooleanSupplier orElseGet)
-