public abstract class NotNullLazyValue<T>
extends java.lang.Object
AtomicNotNullLazyValue
.
Clearable version: ClearableLazyValue
.Constructor and Description |
---|
NotNullLazyValue() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
compute() |
static <T> NotNullLazyValue<T> |
createConstantValue(T value) |
static <T> NotNullLazyValue<T> |
createValue(NotNullFactory<? extends T> value) |
T |
getValue() |
boolean |
isComputed() |
protected abstract T compute()
public T getValue()
public boolean isComputed()
public static <T> NotNullLazyValue<T> createConstantValue(T value)
public static <T> NotNullLazyValue<T> createValue(NotNullFactory<? extends T> value)