Package com.amalgamasimulation.excel
Interface ValueOrError.ThrowingFunction<T,R,X extends Exception>
- Type Parameters:
T- the input typeR- the result typeX- the exception type
- Enclosing class:
ValueOrError<R,E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function that accepts one argument and may throw a checked exception.
-
Method Summary
-
Method Details
-
apply
Applies this function to the given value.- Parameters:
value- the input value- Returns:
- the function result
- Throws:
X- when the function fails
-