Package com.google.common.base
Class Suppliers.ThreadSafeSupplier<T>
- java.lang.Object
-
- com.google.common.base.Suppliers.ThreadSafeSupplier<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Supplier<T>delegateprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ThreadSafeSupplier(Supplier<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Retrieves an instance of the appropriate type.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public T get()
Description copied from interface:SupplierRetrieves 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:
toStringin classjava.lang.Object
-
-