T - The actual object type.public class Late<T>
extends java.lang.Object
null-safe way.| Constructor and Description |
|---|
Late() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the object.
|
T |
set(T object)
Set/initialize the object.
|
java.lang.String |
toString() |
public T set(T object)
object - The object to set.public T get()
If the object has not yet been set/initialized an IllegalStateException will be thrown.
public java.lang.String toString()
toString in class java.lang.Object