K - key typeV - value typepublic class WeakIndexCache<K,V> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<K,WeakReference<V>> |
prefixCache |
| Constructor and Description |
|---|
WeakIndexCache() |
protected transient Map<K,WeakReference<V>> prefixCache
public V cache(K s, V v)
s - the cache keyv - the cache valuepublic boolean contains(K k)
k - the key to checkpublic void clear()
Copyright © 2014 The University of Manchester. All Rights Reserved.