Top Description Methods
io.smallrye.common.function

public Interface ExceptionPredicate<T, E extends Exception>

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

A one-argument predicate which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionPredicate<T, E>

Returns:

a predicate which is true only when this and the given predicate return true
and
(ExceptionPredicate<T, 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 ExceptionPredicate<T, 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 ExceptionPredicate<T, E>

Returns:

a predicate which is true when either this or the given predicate return true
or
(ExceptionPredicate<T, 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
)

Evaluate this predicate on the given arguments.

public default <
the second argument type
U
>
ExceptionBiPredicate<T, U, E>

Returns:

a bi-predicate which is true when this predicate is true for its first argument, and the given predicate is true for its second argument
with
(ExceptionPredicate<? super U, ? extends E>
the other predicate (must not be null)
other
)

Returns a bi-predicate which is true when this predicate is true for its first argument, and the given predicate is true for its second argument.

public default ExceptionPredicate<T, E>

Returns:

a predicate which is true when either this or the given predicate (but not both) return true
xor
(ExceptionPredicate<T, 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 ExceptionPredicate<T, E> and(ExceptionPredicate<T, E> other)

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

Parameters
other:ExceptionPredicate<T, E>

the other predicate (must not be null)

Returns:ExceptionPredicate<T, E>

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

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

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

Returns:ExceptionPredicate<T, E>

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

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

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

Parameters
other:ExceptionPredicate<T, E>

the other predicate (must not be null)

Returns:ExceptionPredicate<T, E>

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

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

Evaluate this predicate on the given arguments.

Parameters
t:T

the first argument

Returns:boolean

true if the predicate passes, false otherwise

Exceptions
ExceptionPredicate:E:
if an exception occurs
withback to summary
public default <U> ExceptionBiPredicate<T, U, E> with(ExceptionPredicate<? super U, ? extends E> other)

Returns a bi-predicate which is true when this predicate is true for its first argument, and the given predicate is true for its second argument.

Parameters
<U>
the second argument type
other:ExceptionPredicate<? super U, ? extends E>

the other predicate (must not be null)

Returns:ExceptionBiPredicate<T, U, E>

a bi-predicate which is true when this predicate is true for its first argument, and the given predicate is true for its second argument

xorback to summary
public default ExceptionPredicate<T, E> xor(ExceptionPredicate<T, E> other)

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

Parameters
other:ExceptionPredicate<T, E>

the other predicate (must not be null)

Returns:ExceptionPredicate<T, E>

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