Interface FunctionPotentialException<T,R,E extends Throwable>
- Type Parameters:
T- The type of the input parameter to the functionR- The return type of the functionE- The typing of a potential checked exception
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An extension to
Function which allows the apply method to throw checked exceptions if
desired.-
Method Summary
-
Method Details
-
apply
Applies this function to the given argument, which may throw an unchecked or checked exception.- Parameters:
t- The function argument.- Returns:
- The function result.
- Throws:
E- A checked exception which may be thrown.
-