Module com.aoapps.lang
Package com.aoapps.lang.function
Interface PredicateE<T,Ex extends Throwable>
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A predicate that is allowed to throw a checked exception.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault PredicateE
<T, Ex> and
(PredicateE<? super T, ? extends Ex> other) static <T,
Ex extends Throwable>
PredicateE<T, Ex> default PredicateE
<T, Ex> negate()
static <T,
Ex extends Throwable>
PredicateE<T, Ex> not
(PredicateE<? super T, ? extends Ex> target) default PredicateE
<T, Ex> or
(PredicateE<? super T, ? extends Ex> other) boolean
-
Method Details
-
test
- Throws:
Ex
-
and
- Throws:
Ex
-
negate
- Throws:
Ex
-
or
- Throws:
Ex
-
isEqual
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown
-
not
static <T,Ex extends Throwable> PredicateE<T,Ex> not(PredicateE<? super T, ? extends Ex> target) throws Ex- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Throws:
Ex
-