T
- the type of the input to the function@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
- the input argumentjavax.jcr.RepositoryException
- the underlying repository errorstatic <T,R> UncheckedFunction<T,R> uncheck(UncheckedFunction<T,R> p)
T
- the type of the input to the functionR
- the type of the output of the functionp
- a lambda expressionCopyright © 2013–2018 DuraSpace, Inc.. All rights reserved.