T - type of lazily enumerated entity.public final class Lazy<T> extends LazyInitializer<T>
LazyInitializer that gets a Supplier to initialise
with.LazyInitializer,
Supplier| Constructor and Description |
|---|
Lazy(Supplier<T> supplier)
Constructs a
Lazy instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
protected T |
initialize() |
boolean |
isInitialized()
Gets whether this lazy instance has been initialised.
|
public boolean isInitialized()
public T get()
get in interface ConcurrentInitializer<T>get in class LazyInitializer<T>protected T initialize() throws ConcurrentException
initialize in class LazyInitializer<T>ConcurrentExceptionCopyright © 2016. All rights reserved.