| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> T | |
| pack-priv static Object |
| NULL | back to summary |
|---|---|
| private static final Object NULL | |
| LazyUtil | back to summary |
|---|---|
| pack-priv LazyUtil() | |
| unwrapNull | back to summary |
|---|---|
| pack-priv static <T> T unwrapNull(final Object value) | |
| wrapNull | back to summary |
|---|---|
| pack-priv static Object wrapNull(final Object value) | |
| Modifier and Type | Field and Description |
|---|---|
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isInitialized()
Implements org. Indicates whether this lazy value has been initialized. |
| public void | set(final T newValue)
Implements org. Sets this lazy value to the provided value. |
| public String | |
| public T |
| value | back to summary |
|---|---|
| private final T value | |
| Constant | back to summary |
|---|---|
| pack-priv Constant(final T value) | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Implements org. Doc from org. Indicates whether this lazy value has been initialized.
| |
| set | back to summary |
|---|---|
| public void set(final T newValue) Implements org. Doc from org. Sets this lazy value to the provided value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public T value() Implements org. Doc from org. Returns the value held by this lazy. This may cause the value to initialize if it hasn't been already.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isInitialized()
Implements org. Indicates whether this lazy value has been initialized. |
| public void | set(final T newValue)
Implements org. Sets this lazy value to the provided value. |
| public T |
| supplier | back to summary |
|---|---|
| private final Supplier<T> supplier | |
| value | back to summary |
|---|---|
| private Object value | |
| PureLazy | back to summary |
|---|---|
| public PureLazy(final Supplier<T> supplier) | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Implements org. Doc from org. Indicates whether this lazy value has been initialized.
| |
| set | back to summary |
|---|---|
| public void set(final T newValue) Implements org. Doc from org. Sets this lazy value to the provided value.
| |
| value | back to summary |
|---|---|
| public T value() Implements org. Doc from org. Returns the value held by this lazy. This may cause the value to initialize if it hasn't been already.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Lock | |
| private final Supplier | |
| private volatile Object |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isInitialized()
Implements org. Indicates whether this lazy value has been initialized. |
| public void | |
| public void | set(final T newValue)
Implements org. Sets this lazy value to the provided value. |
| public String | |
| public T |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| supplier | back to summary |
|---|---|
| private final Supplier<T> supplier | |
| value | back to summary |
|---|---|
| private volatile Object value | |
| SafeLazy | back to summary |
|---|---|
| pack-priv SafeLazy(final Supplier<T> supplier) | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Implements org. Doc from org. Indicates whether this lazy value has been initialized.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| set | back to summary |
|---|---|
| public void set(final T newValue) Implements org. Doc from org. Sets this lazy value to the provided value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public T value() Implements org. Doc from org. Returns the value held by this lazy. This may cause the value to initialize if it hasn't been already.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isInitialized()
Implements org. Indicates whether this lazy value has been initialized. |
| public void | set(final T newValue)
Implements org. Sets this lazy value to the provided value. |
| public String | |
| public T |
| reference | back to summary |
|---|---|
| private final WeakReference<T> reference | |
| WeakConstant | back to summary |
|---|---|
| pack-priv WeakConstant(final T value) | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Implements org. Doc from org. Indicates whether this lazy value has been initialized.
| |
| set | back to summary |
|---|---|
| public void set(final T newValue) Implements org. Doc from org. Sets this lazy value to the provided value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public T value() Implements org. Doc from org. Returns the value held by this lazy. This may cause the value to initialize if it hasn't been already.
| |