com.google.common.util.concurrent
Class Callables
java.lang.Object
com.google.common.util.concurrent.Callables
public final class Callables
- extends Object
Static utility methods pertaining to the Callable
interface.
- Since:
- 2009.09.15 tentative
- Author:
- Isaac Shum
Method Summary |
static
|
returning(T value)
Creates a Callable which immediately returns a preset value each
time it is called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
returning
public static <T> Callable<T> returning(@Nullable
T value)
- Creates a
Callable
which immediately returns a preset value each
time it is called.