Class Callables


  • @GwtCompatible(emulated=true)
    public final class Callables
    extends java.lang.Object
    Static utility methods pertaining to the Callable interface.
    Since:
    1.0
    Author:
    Isaac Shum
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends @Nullable java.lang.Object>
      AsyncCallable<T>
      asAsyncCallable​(java.util.concurrent.Callable<T> callable, ListeningExecutorService listeningExecutorService)
      Creates an AsyncCallable from a Callable.
      static <T extends @Nullable java.lang.Object>
      java.util.concurrent.Callable<T>
      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