Interface ThrowingFunction<T,R,X extends Exception>
- Type Parameters:
T- The input type of the function.R- The result type of the function.X- The exception type the function may throw.
public interface ThrowingFunction<T,R,X extends Exception>
Functional interface for operations which may throw a checked exception.
- Since:
- 5.0.2
- Author:
- John Hendrikx
-
Method Summary
-
Method Details
-
apply
Applies the function to the givenT.- Parameters:
input- The input of typeT.- Returns:
- The result of applying the function.
- Throws:
X- When the function failed with an exception of typeX.
-