Package io.activej.common.function
Interface PredicateEx<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a
Predicate capable of throwing exceptions-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PredicateEx<T>booleanstatic <T> Predicate<T>uncheckedOf(PredicateEx<T> checkedFn) Creates aPredicateout ofPredicateEx
-
Method Details
-
test
- Throws:
Exception
-
of
-
uncheckedOf
Creates aPredicateout ofPredicateExIf given supplier throws a checked exception, it will be wrapped into
UncheckedExceptionand rethrownUnchecked exceptions will be handled by thread's
FatalErrorHandler- Parameters:
checkedFn- originalPredicateEx- Returns:
- a predicate
-