Package com.google.common.base
Class Suppliers.SupplierOfInstance<T>
- java.lang.Object
-
- com.google.common.base.Suppliers.SupplierOfInstance<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Tinstanceprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SupplierOfInstance(T instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Tget()Retrieves an instance of the appropriate type.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
instance
final T instance
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SupplierOfInstance
SupplierOfInstance(T instance)
-
-
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.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-