Class Suppliers.MemoizingSupplier<T>

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

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

    • lock

      private transient Object lock
    • delegate

      final Supplier<T> delegate
    • initialized

      transient volatile boolean initialized
    • value

      @CheckForNull transient T value
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • MemoizingSupplier

      MemoizingSupplier(Supplier<T> delegate)
  • Method Details