Package com.google.common.base
Class Suppliers.MemoizingSupplier<T>
- java.lang.Object
-
- com.google.common.base.Suppliers.MemoizingSupplier<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Supplier<T>
delegate
(package private) boolean
initialized
private static long
serialVersionUID
(package private) T
value
-
Constructor Summary
Constructors Constructor Description MemoizingSupplier(Supplier<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Retrieves an instance of the appropriate type.java.lang.String
toString()
-
-
-
Field Detail
-
initialized
transient volatile boolean initialized
-
value
transient T value
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-