@Beta
public class CallableFromRunnable<T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>
Executors.callable(Runnable, Object)
but including the underlying toString.Modifier and Type | Method and Description |
---|---|
T |
call() |
static <T> CallableFromRunnable<T> |
newInstance(java.lang.Runnable task,
T result) |
java.lang.String |
toString() |
public static <T> CallableFromRunnable<T> newInstance(java.lang.Runnable task, T result)
public java.lang.String toString()
toString
in class java.lang.Object