Interface CheckedPredicate<T,E extends Exception>
- Type Parameters:
T
- type of object to test.E
- exception-type if testing fails.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Predicate
but can also throw an exception.- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
test
Applies a predicate like withPredicate.test(T)
.- Parameters:
source
- object to be tested.- Returns:
- true if predicate is satisfied, false otherwise.
- Throws:
E
- an exception that may be thrown.
-