Package aQute.lib.exceptions
Interface BiPredicateWithException<T,U>
- Type Parameters:
T
- the type of the first argumentU
- the type of the second argument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
BiPredicate interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U> BiPredicate<T, U> asBiPredicate
(BiPredicateWithException<T, U> unchecked) static <T,
U> BiPredicate<T, U> asBiPredicateOrElse
(BiPredicateWithException<T, U> unchecked, boolean orElse) static <T,
U> BiPredicate<T, U> asBiPredicateOrElseGet
(BiPredicateWithException<T, U> unchecked, BooleanSupplier orElseGet) default BiPredicate<T,
U> orElse
(boolean orElse) default BiPredicate<T,
U> orElseGet
(BooleanSupplier orElseGet) default BiPredicate<T,
U> boolean
-
Method Details
-
test
- Throws:
Exception
-
orElseThrow
-
orElse
-
orElseGet
-
asBiPredicate
-
asBiPredicateOrElse
static <T,U> BiPredicate<T,U> asBiPredicateOrElse(BiPredicateWithException<T, U> unchecked, boolean orElse) -
asBiPredicateOrElseGet
static <T,U> BiPredicate<T,U> asBiPredicateOrElseGet(BiPredicateWithException<T, U> unchecked, BooleanSupplier orElseGet)
-