T
- @FunctionalInterface public interface UncheckedPredicate<T> extends Predicate<T>, com.google.common.base.Predicate<T>
RepositoryException
cannot be used as lambdas without "unchecking" those exceptions.Modifier and Type | Method and Description |
---|---|
default boolean |
apply(T elem) |
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) |
default boolean apply(T elem)
apply
in interface com.google.common.base.Predicate<T>
boolean testThrows(T elem) throws javax.jcr.RepositoryException
test(Object)
, but allowed to throw a RepositoryException
elem
- javax.jcr.RepositoryException
static <T> UncheckedPredicate<T> uncheck(UncheckedPredicate<T> p)
p
- a lambda expressionCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.