Package com.identityworksllc.iiq.common
Interface Functions.PredicateWithError<A>
-
- All Superinterfaces:
Predicate<A>
- Enclosing class:
- Functions
public static interface Functions.PredicateWithError<A> extends Predicate<A>
An extension of Predicate that allows predicate code to throw an exception.If used in a context not expecting this class, the error will be caught, logged, and re-thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Functions.PredicateWithError<A>
and(Predicate<? super A> other)
default Functions.PredicateWithError<A>
negate()
default Functions.PredicateWithError<A>
or(Predicate<? super A> other)
default boolean
test(A a)
boolean
testWithError(A object)
-
-
-
Method Detail
-
and
default Functions.PredicateWithError<A> and(Predicate<? super A> other)
-
negate
default Functions.PredicateWithError<A> negate()
-
or
default Functions.PredicateWithError<A> or(Predicate<? super A> other)
-
testWithError
boolean testWithError(A object) throws Throwable
- Throws:
Throwable
-
-