If I have a FutureTask<String> f, can I get the Callable<String> c object that was used in his constructor?
Something like:
Callable<String> c = f.getCallable();
If I have a FutureTask<String> f, can I get the Callable<String> c object that was used in his constructor?
Something like:
Callable<String> c = f.getCallable();
Not with
FutureTaskitself, but you could extend it for your own needs: