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) T
instance
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SupplierOfInstance(T instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
T
get()
Retrieves an instance of the appropriate type.int
hashCode()
java.lang.String
toString()
-
-
-
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:Supplier
Retrieves 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(@CheckForNull java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-