An interface that captures a unit of work against an item where an exception might be thrown. @param The argument type for the function. @param The return type for the function. @param The exception type that the function throws.
| 26 | * |
| 27 | */ |
| 28 | public interface ExceptionalFunction<S, T, E extends Exception> { |
| 29 | |
| 30 | /** |
| 31 | * Performs a unit of work on item, possibly throwing {@code E} in the process. |
| 32 | * |
| 33 | * @param item The item to perform work against. |
| 34 | * @return The result of the computation. |
| 35 | * @throws E if there was a problem performing the work. |
| 36 | */ |
| 37 | public T apply(S item) throws E; |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected