T - @FunctionalInterface public interface UncheckedPredicate<T> extends java.util.function.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) |
and, isEqual, negate, ordefault boolean test(T elem)
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 RepositoryExceptionelem - javax.jcr.RepositoryExceptionstatic <T> UncheckedPredicate<T> uncheck(UncheckedPredicate<T> p)
p - a lambda expressionCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.