T - public abstract class WeakLazyValueHolder<T> extends Object implements ValueHolder<T>
LazyValueHolder that uses WeakReference.| Constructor and Description |
|---|
WeakLazyValueHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected abstract T |
computeValue() |
static <V> Function<V,ValueHolder<V>> |
forValue() |
T |
get() |
T |
getIfPresent() |
public static <V> Function<V,ValueHolder<V>> forValue()
public T get()
get in interface ValueHolder<T>public T getIfPresent()
getIfPresent in interface ValueHolder<T>public void clear()
protected abstract T computeValue()
Copyright © 2017. All rights reserved.