@FunctionalInterface
public interface ExceptionPredicate<T,E extends java.lang.Exception>
Modifier and Type | Method and Description |
---|---|
default ExceptionPredicate<T,E> |
and(ExceptionPredicate<T,E> other) |
default ExceptionPredicate<T,E> |
not() |
default ExceptionPredicate<T,E> |
or(ExceptionPredicate<T,E> other) |
boolean |
test(T t)
Evaluate this predicate on the given arguments.
|
default <U> ExceptionBiPredicate<T,U,E> |
with(ExceptionPredicate<? super U,? extends E> other) |
default ExceptionPredicate<T,E> |
xor(ExceptionPredicate<T,E> other) |
boolean test(T t) throws E extends java.lang.Exception
t
- the first argumenttrue
if the predicate passes, false
otherwiseE
- if an exception occursE extends java.lang.Exception
default ExceptionPredicate<T,E> and(ExceptionPredicate<T,E> other)
default ExceptionPredicate<T,E> or(ExceptionPredicate<T,E> other)
default ExceptionPredicate<T,E> xor(ExceptionPredicate<T,E> other)
default ExceptionPredicate<T,E> not()
default <U> ExceptionBiPredicate<T,U,E> with(ExceptionPredicate<? super U,? extends E> other)
Copyright © 2015 JBoss, a division of Red Hat, Inc.