T
- the type of the input to the predicate@FunctionalInterface public interface UncheckedPredicate<T> extends Predicate<T>
RepositoryException
cannot be used as lambdas without "unchecking" those exceptions.Modifier and Type | Method and Description |
---|---|
default boolean |
test(T elem) |
boolean |
testThrows(T elem)
The same semantic as
test(Object) , but allowed to throw a RepositoryException |
static <T> UncheckedPredicate<T> |
uncheck(UncheckedPredicate<T> p) |
boolean testThrows(T elem) throws javax.jcr.RepositoryException
test(Object)
, but allowed to throw a RepositoryException
elem
- the input argumentjavax.jcr.RepositoryException
- a repository-related exceptionstatic <T> UncheckedPredicate<T> uncheck(UncheckedPredicate<T> p)
T
- the type of the input to the predicatep
- a lambda expressionCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.