Module io.smallrye.common.function
Package io.smallrye.common.function
Interface ExceptionBiPredicate<T,U,E extends Exception>
- Type Parameters:
T- the first argument typeU- the second argument typeE- the exception type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A two-argument predicate which can throw an exception.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionBiPredicate<T, U, E> and(ExceptionBiPredicate<T, U, E> other) Returns a predicate which istrueonly when this and the given predicate returntrue.default ExceptionBiPredicate<T, U, E> not()Returns a predicate which istruewhen this predicate isfalse, and vice-versa.default ExceptionBiPredicate<T, U, E> or(ExceptionBiPredicate<T, U, E> other) Returns a predicate which istruewhen either this or the given predicate returntrue.booleanEvaluate this predicate on the given arguments.default ExceptionBiPredicate<T, U, E> xor(ExceptionBiPredicate<T, U, E> other) Returns a predicate which istruewhen either this or the given predicate (but not both) returntrue.
-
Method Details
-
test
Evaluate this predicate on the given arguments.- Parameters:
t- the first argumentu- the second argument- Returns:
trueif the predicate passes,falseotherwise- Throws:
E- if an exception occurs
-
and
Returns a predicate which istrueonly when this and the given predicate returntrue.- Parameters:
other- the other predicate (must not benull)- Returns:
- a predicate which is
trueonly when this and the given predicate returntrue
-
or
Returns a predicate which istruewhen either this or the given predicate returntrue.- Parameters:
other- the other predicate (must not benull)- Returns:
- a predicate which is
truewhen either this or the given predicate returntrue
-
xor
Returns a predicate which istruewhen either this or the given predicate (but not both) returntrue.- Parameters:
other- the other predicate (must not benull)- Returns:
- a predicate which is
truewhen either this or the given predicate (but not both) returntrue
-
not
Returns a predicate which istruewhen this predicate isfalse, and vice-versa.- Returns:
- a predicate which is
truewhen this predicate isfalse, and vice-versa
-