public class Lazy<T> extends Object implements Supplier<T>
Modifier and Type | Field and Description |
---|---|
protected Supplier<T> |
supplier
The supplier.
|
protected T |
value
The value.
|
Constructor and Description |
---|
Lazy(Supplier<T> supplier)
Creates a Lazy using SUPPLIER.
|
Modifier and Type | Method and Description |
---|---|
boolean |
created() |
T |
get() |
protected T |
getInternal()
Helper to avoid synchronizing
get() . |
protected volatile T value
Copyright © 2019. All rights reserved.