Interface ThrowingFunction<T,R>
- Type Parameters:
T
- input typeR
- result type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Function<T, R>
but allows checked exceptions.-
Method Summary
-
Method Details
-
apply
Applies the function.- Parameters:
t
- input value- Returns:
- result
- Throws:
Exception
- if any error occurs
-