T
- see Predicate
@FunctionalInterface public interface ThrowingPredicate<T>
Predicate
that allows throwing checked exceptions. ThrowingPredicate
is usually implemented by a lambda and passed to CheckedExceptionHandler.predicate(ThrowingPredicate)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
boolean |
test(T t)
Variation of Predicate.test(Object) that allows throwing checked exceptions.
|
boolean test(T t) throws Throwable
Predicate.test(Object)
that allows throwing checked exceptions.
t
- see Predicate.test(Object)
Predicate.test(Object)
Throwable
- if unable to complete
CheckedExceptionHandler.predicate(ThrowingPredicate)
, Predicate.test(Object)
Copyright © 2017–2020 Robert Važan. All rights reserved.