Top Description Methods
io.smallrye.common.function

public Interface ExceptionBiPredicate<T, U, E extends Exception>

Annotations
@FunctionalInterface
Type Parameters
<T>
the first argument type
<U>
the second argument type
<E>
the exception type

A two-argument predicate which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionBiPredicate<T, U, E>

Returns:

a predicate which is true only when this and the given predicate return true
and
(ExceptionBiPredicate<T, U, E>
the other predicate (must not be null)
other
)

Returns a predicate which is true only when this and the given predicate return true.

public default ExceptionBiPredicate<T, U, E>

Returns:

a predicate which is true when this predicate is false, and vice-versa
not
()

Returns a predicate which is true when this predicate is false, and vice-versa.

public default ExceptionBiPredicate<T, U, E>

Returns:

a predicate which is true when either this or the given predicate return true
or
(ExceptionBiPredicate<T, U, E>
the other predicate (must not be null)
other
)

Returns a predicate which is true when either this or the given predicate return true.

public boolean

Returns:

true if the predicate passes, false otherwise
test
(T
the first argument
t
,
U
the second argument
u
)

Evaluate this predicate on the given arguments.

public default ExceptionBiPredicate<T, U, E>

Returns:

a predicate which is true when either this or the given predicate (but not both) return true
xor
(ExceptionBiPredicate<T, U, E>
the other predicate (must not be null)
other
)

Returns a predicate which is true when either this or the given predicate (but not both) return true.

Method Detail

andback to summary
public default ExceptionBiPredicate<T, U, E> and(ExceptionBiPredicate<T, U, E> other)

Returns a predicate which is true only when this and the given predicate return true.

Parameters
other:ExceptionBiPredicate<T, U, E>

the other predicate (must not be null)

Returns:ExceptionBiPredicate<T, U, E>

a predicate which is true only when this and the given predicate return true

notback to summary
public default ExceptionBiPredicate<T, U, E> not()

Returns a predicate which is true when this predicate is false, and vice-versa.

Returns:ExceptionBiPredicate<T, U, E>

a predicate which is true when this predicate is false, and vice-versa

orback to summary
public default ExceptionBiPredicate<T, U, E> or(ExceptionBiPredicate<T, U, E> other)

Returns a predicate which is true when either this or the given predicate return true.

Parameters
other:ExceptionBiPredicate<T, U, E>

the other predicate (must not be null)

Returns:ExceptionBiPredicate<T, U, E>

a predicate which is true when either this or the given predicate return true

testback to summary
public boolean test(T t, U u) throws ExceptionPredicate:E

Evaluate this predicate on the given arguments.

Parameters
t:T

the first argument

u:U

the second argument

Returns:boolean

true if the predicate passes, false otherwise

Exceptions
ExceptionPredicate:E:
if an exception occurs
xorback to summary
public default ExceptionBiPredicate<T, U, E> xor(ExceptionBiPredicate<T, U, E> other)

Returns a predicate which is true when either this or the given predicate (but not both) return true.

Parameters
other:ExceptionBiPredicate<T, U, E>

the other predicate (must not be null)

Returns:ExceptionBiPredicate<T, U, E>

a predicate which is true when either this or the given predicate (but not both) return true