Interface SpecificThrowingFunction<E extends Throwable,T,R>
- Type Parameters:
E
- The exception typeT
- The input typeR
- The result type
- All Known Subinterfaces:
ThrowingFunction<T,
R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Similar to a
Function
, except that the functional apply
method is allowed to throw the specified exception.- Since:
- 2.11.0
-
Method Summary
-
Method Details
-
apply
Performs an operation on the given object and returns its result.- Parameters:
t
- The input argument- Returns:
- The result
- Throws:
E
- Any exception
-