E - type of checked exception possibly thrown by the implementation. You can use e.g. RuntimeException if
particular implementation does not throw any checked exceptions.public interface CheckedCallable<T,E extends Exception>
Callable that allows checked exceptions.
Unless you need to expose checked exceptions in your API, you should use the original interface. However, when
you're unlucky enough and you have to deal with IOException, SQLException or any other checked exception, this class might come useful.
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
default <R> CheckedCallable<R,E> |
map(CheckedFunction<T,R,? extends E> func) |
default <R> CheckedCallable<R,E> map(CheckedFunction<T,R,? extends E> func)
Copyright © 2016. All rights reserved.