public abstract class ClearableLazyValue<T>
extends java.lang.Object
AtomicClearableLazyValue
.Constructor and Description |
---|
ClearableLazyValue() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
compute() |
static <T> ClearableLazyValue<T> |
create(Computable<? extends T> computable) |
static <T> ClearableLazyValue<T> |
createAtomic(java.util.function.Supplier<? extends T> computable) |
void |
drop() |
T |
getValue() |
public static <T> ClearableLazyValue<T> create(Computable<? extends T> computable)
public static <T> ClearableLazyValue<T> createAtomic(java.util.function.Supplier<? extends T> computable)
protected abstract T compute()
public T getValue()
public void drop()