Package io.activej.common.function
Interface BiPredicateEx<T,U>
- 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
BiPredicate capable of throwing exceptions-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U> BiPredicateEx<T, U> of(BiPredicate<T, U> uncheckedFn) booleanstatic <T,U> BiPredicate<T, U> uncheckedOf(BiPredicateEx<T, U> checkedFn) Creates aBiPredicateout ofBiPredicateEx
-
Method Details
-
test
- Throws:
Exception
-
of
-
uncheckedOf
Creates aBiPredicateout ofBiPredicateExIf given supplier throws a checked exception, it will be wrapped into
UncheckedExceptionand rethrownUnchecked exceptions will be handled by thread's
FatalErrorHandler- Parameters:
checkedFn- originalBiPredicateEx- Returns:
- a predicate
-