Module com.machinezoo.noexception
Interface ThrowingPredicate<T>
-
- Type Parameters:
-
T
- seePredicate
- 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 ThrowingPredicate<T>
Variation ofPredicate
that allows throwing checked exceptions.ThrowingPredicate
is usually implemented by a lambda and passed toCheckedExceptionHandler.predicate(ThrowingPredicate)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
test(T t)
Variation ofPredicate.test(Object)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
test
boolean test(T t) throws Throwable
Variation ofPredicate.test(Object)
that allows throwing checked exceptions.- Parameters:
-
t
- seePredicate.test(Object)
- Returns:
-
see
Predicate.test(Object)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.predicate(ThrowingPredicate)
,Predicate.test(Object)
-
-