- Type Parameters:
V- Input type.R- Output type.
- All Superinterfaces:
Function<V,R>
- Enclosing class:
- SneakyThrows
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Throwable version of
Function.
The apply(Object) method throws checked exceptions using SneakyThrows.propagate(Throwable) method.
-
Method Summary
-
Method Details
-
tryApply
Apply this function to the given argument and produces a result.- Parameters:
value- Input argument.- Returns:
- Result.
- Throws:
Exception- If something goes wrong.
-
apply
Apply this function to the given argument and produces a result.
-