Top Description Methods
org.wildfly.common.function

public Interface ExceptionPredicate<T, E extends java.lang.Exception>

Annotations
@FunctionalInterface

A one-argument predicate which can throw an exception.
Author
David M. Lloyd

Method Summary

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

public default ExceptionPredicate<T, E>
not()

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

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 <U> ExceptionBiPredicate<T, U, E>
with(ExceptionPredicate<? super U, ? extends E> other)

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

Method Detail

andback to summary
public default ExceptionPredicate<T, E> and(ExceptionPredicate<T, E> other)
notback to summary
public default ExceptionPredicate<T, E> not()
orback to summary
public default ExceptionPredicate<T, E> or(ExceptionPredicate<T, E> other)
testback to summary
public boolean test(T t) throws ExceptionBiConsumer:E

Evaluate this predicate on the given arguments.

Parameters
t:T

the first argument

Returns:boolean

true if the predicate passes, false otherwise

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