T
- @FunctionalInterface public interface UncheckedFunction<T,R> extends Function<T,R>
RepositoryException
cannot be used as lambdas without "unchecking" those exceptions.Modifier and Type | Method and Description |
---|---|
default R |
apply(T elem) |
R |
applyThrows(T elem)
The same semantic as
apply(Object) , but allowed to throw a RepositoryException |
static <T,R> UncheckedFunction<T,R> |
uncheck(UncheckedFunction<T,R> p) |
R applyThrows(T elem) throws javax.jcr.RepositoryException
apply(Object)
, but allowed to throw a RepositoryException
elem
- javax.jcr.RepositoryException
static <T,R> UncheckedFunction<T,R> uncheck(UncheckedFunction<T,R> p)
p
- a lambda expressionCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.