Class Callables


  • @Deprecated(since="2022-12-01")
    public final class Callables
    extends java.lang.Object
    Deprecated.
    The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
    Static utility methods pertaining to the Callable interface.
    Since:
    1.0
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static <T> java.util.concurrent.Callable<T> returning​(T value)
      Deprecated.
      Creates a Callable which immediately returns a preset value each time it is called.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • returning

        public static <T> java.util.concurrent.Callable<T> returning​(@Nullable
                                                                     T value)
        Deprecated.
        Creates a Callable which immediately returns a preset value each time it is called.