Class Suppliers.ThreadSafeSupplier<T>

java.lang.Object
com.google.common.base.Suppliers.ThreadSafeSupplier<T>
All Implemented Interfaces:
Supplier<T>, Serializable, Supplier<T>
Enclosing class:
Suppliers

private static class Suppliers.ThreadSafeSupplier<T> extends Object implements Supplier<T>, Serializable
  • Field Details

  • Constructor Details

    • ThreadSafeSupplier

      ThreadSafeSupplier(Supplier<T> delegate)
  • Method Details

    • get

      public T get()
      Description copied from interface: Supplier
      Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
      Specified by:
      get in interface Supplier<T>
      Specified by:
      get in interface Supplier<T>
      Returns:
      an instance of the appropriate type
    • toString

      public String toString()
      Overrides:
      toString in class Object