T - The actual object type.public class Lazy<T>
extends java.lang.Object
null-safe way.| Constructor and Description |
|---|
Lazy(java.util.function.Supplier<T> initializer)
Construct Lazy.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the object.
|
java.lang.String |
toString() |
public T get()
The actual object will be created lazily the first time this function is invoked.
public java.lang.String toString()
toString in class java.lang.Object