Package org.wildfly.common.function
Interface ExceptionPredicate<T,E extends java.lang.Exception>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExceptionPredicate<T,E extends java.lang.Exception>
A one-argument predicate which can throw an exception.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
test
boolean test(T t) throws E extends java.lang.Exception
Evaluate this predicate on the given arguments.
-
and
default ExceptionPredicate<T,E> and(ExceptionPredicate<T,E> other)
-
or
default ExceptionPredicate<T,E> or(ExceptionPredicate<T,E> other)
-
xor
default ExceptionPredicate<T,E> xor(ExceptionPredicate<T,E> other)
-
not
default ExceptionPredicate<T,E> not()
-
with
default <U> ExceptionBiPredicate<T,U,E> with(ExceptionPredicate<? super U,? extends E> other)
-
-