public class Lazy<T>
extends java.lang.Object
get() (or it may not be called at all).| Modifier and Type | Class and Description |
|---|---|
static interface |
Lazy.LazyInitializer<T>
Deprecated.
since 1/2017 use a
Supplier instead |
| Constructor and Description |
|---|
Lazy(java.util.function.Supplier<T> initializer) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the instance associated with this
Lazy, initializing it if necessary. |
boolean |
isInitialized() |