public abstract class UniqueValueCache<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
UniqueValueCache.GetKeyRef |
protected static class |
UniqueValueCache.KeyRef<K> |
protected static class |
UniqueValueCache.SoftValueRef<T> |
protected static class |
UniqueValueCache.WeakValueRef<T> |
| Constructor and Description |
|---|
UniqueValueCache() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key) |
protected Reference<V> |
newReference(UniqueValueCache.KeyRef keyRef,
V value,
ReferenceQueue<? super V> q) |
protected abstract V |
newValue(K key) |
protected Reference<V> newReference(UniqueValueCache.KeyRef keyRef, V value, ReferenceQueue<? super V> q)
Copyright © 2015. All rights reserved.