T - the type of the input to the function@FunctionalInterface public interface UncheckedFunction<T,R> extends java.util.function.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) |
andThen, compose, identityR applyThrows(T elem) throws javax.jcr.RepositoryException
apply(Object), but allowed to throw a RepositoryExceptionelem - 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-2015 DuraSpace, Inc.. All Rights Reserved.