Class Suppliers.NonSerializableMemoizingSupplier<T>

  • All Implemented Interfaces:
    Supplier<T>, java.util.function.Supplier<T>
    Enclosing class:
    Suppliers

    static class Suppliers.NonSerializableMemoizingSupplier<T>
    extends java.lang.Object
    implements Supplier<T>
    • Field Detail

      • initialized

        volatile boolean initialized
      • value

        T value
    • Constructor Detail

      • NonSerializableMemoizingSupplier

        NonSerializableMemoizingSupplier​(Supplier<T> delegate)
    • Method Detail

      • 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 java.util.function.Supplier<T>
        Returns:
        an instance of the appropriate type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object