Interface ThrowingFunction<T,R>
-
- Type Parameters:
T- the type of the input to the functionR- the type of the result of the function
- 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>This interface replacesFunctionin cases when execution ofapply(Object)method may throw exception.Useful for capturing lambdas that throw exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T t)Applies this function to the given argument.
-