Package me.saro.commons.function
Interface ThrowableFunction<T,R>
-
- Type Parameters:
T- input parameter type TR- output return type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowableFunction<T,R>ThrowableFunction- Since:
- 0.1
- Author:
- PARK Yong Seo
- See Also:
Function
-
-
Method Summary
Modifier and Type Method Description Rapply(T t)static <T,R>
java.util.function.Function<T,R>runtime(ThrowableFunction<T,R> function)throws Exception lambda to throws RuntimeException lambda
-
-
-
Method Detail
-
apply
R apply(T t) throws java.lang.Exception
- Parameters:
t- input parameter type T- Returns:
- output return
- Throws:
java.lang.Exception- See Also:
Function
-
runtime
static <T,R> java.util.function.Function<T,R> runtime(ThrowableFunction<T,R> function)
throws Exception lambda to throws RuntimeException lambda- Parameters:
function-- Returns:
- Since:
- 0.6
-
-