public class CommonTask<V> extends Object implements Callable<V>, Runnable
static class
CommonTask.CallableToRunnable
CommonTask.RunnableToCallable<V>
CommonTask(Callable<V> t)
CommonTask(Runnable t)
V
call()
Class
getExpectClass()
void
run()
static <V> CommonTask<V>
wrap(Callable<V> r)
wrap(Runnable r)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CommonTask(Callable<V> t)
public CommonTask(Runnable t)
public static <V> CommonTask<V> wrap(Runnable r)
public static <V> CommonTask<V> wrap(Callable<V> r)
public V call() throws Exception
call
Callable<V>
Exception
public void run()
run
Runnable
public Class getExpectClass()
Copyright © 2022. All rights reserved.