public final class Callables
extends java.lang.Object
Callable
interface.Modifier and Type | Method and Description |
---|---|
static <T> java.util.concurrent.Callable<T> |
returning(T value)
Creates a
Callable which immediately returns a preset value each
time it is called. |