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>
Describes how to build the instance of the lazy object.
|
| Constructor and Description |
|---|
Lazy(Lazy.LazyInitializer<T> initializer)
Simple cons
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the instance associated with this
Lazy, initializing it if necessary. |
boolean |
isInitialized() |
public Lazy(Lazy.LazyInitializer<T> initializer)