public abstract class DisplayTask<V>
extends java.lang.Object
implements java.util.concurrent.Callable<V>
Modifier | Constructor and Description |
---|---|
protected |
DisplayTask() |
Modifier and Type | Method and Description |
---|---|
V |
get(DisplayExecutor executor) |
static <V> DisplayTask<V> |
of(java.util.concurrent.Callable<V> callable) |
static <V> DisplayTask<V> |
of(java.lang.Runnable runnable) |
static <V> DisplayTask<V> |
of(java.lang.Runnable runnable,
V result) |
static <V> DisplayTask<V> |
of(com.google.common.base.Supplier<V> supplier) |
public static final <V> DisplayTask<V> of(java.util.concurrent.Callable<V> callable)
public static final <V> DisplayTask<V> of(java.lang.Runnable runnable)
public static final <V> DisplayTask<V> of(java.lang.Runnable runnable, @Nullable V result)
public static final <V> DisplayTask<V> of(com.google.common.base.Supplier<V> supplier)
public final V get(DisplayExecutor executor)