T - The type of the object@ThreadSafe
public class Lazy<T>
extends java.lang.Object
| Constructor and Description |
|---|
Lazy(java.util.function.Supplier<T> supplier) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
static <T> Lazy<T> |
of(java.util.function.Supplier<T> supplier)
Create a new lazy object.
|
public Lazy(java.util.function.Supplier<T> supplier)