Package com.chutneytesting.tools
Interface ThrowingFunction<T,R,E extends Exception>
-
- 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 ThrowingFunction<T,R,E extends Exception>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T t)static <T,R,E extends Exception>
Function<T,R>silence(ThrowingFunction<T,R,E> throwingFunction, Function<Exception,R> exceptionHandler)static <T,R,E extends Exception>
Function<T,R>toUnchecked(ThrowingFunction<T,R,E> throwingFunction)
-
-
-
Method Detail
-
toUnchecked
static <T,R,E extends Exception> Function<T,R> toUnchecked(ThrowingFunction<T,R,E> throwingFunction) throws UncheckedException
- Throws:
UncheckedException- if givenThrowingFunctionthrows
-
silence
static <T,R,E extends Exception> Function<T,R> silence(ThrowingFunction<T,R,E> throwingFunction, Function<Exception,R> exceptionHandler)
-
-