Modifier and Type | Field and Description |
---|---|
(package private) T |
instance |
private static long |
serialVersionUID |
Constructor and Description |
---|
SupplierOfInstance(T instance) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
T |
get()
Retrieves an instance of the appropriate type.
|
int |
hashCode() |
java.lang.String |
toString() |
final T instance
private static final long serialVersionUID
SupplierOfInstance(T instance)
public T get()
Supplier
get
in interface java.util.function.Supplier<T>
public boolean equals(@CheckForNull java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object