Memoizer.Impl<T>
Modifier and Type | Field and Description |
---|---|
private Supplier<T> |
supplier |
private java.util.concurrent.atomic.AtomicReference<Optional<T>> |
valueRef |
Modifier and Type | Method and Description |
---|---|
T |
get() |
static <T> Memoizer<T> |
of(Supplier<T> supplier) |