public abstract class WeakCache<K,V> extends Object
| Constructor and Description |
|---|
WeakCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all entries from the cache.
|
V |
get(K key)
Return the value (if any) associated with key.
|
protected abstract V |
lookup(K key)
Must be implemented in a subclass.
|
V |
remove(K key)
Remove any value associated with the key.
|
protected abstract V lookup(K key)
key - Key value for which a value must be computed.public V remove(K key)
key - Key to value that may be in cache.public V get(K key)
key - public void clear()
Copyright © 2011–2019 Eclipse Foundation. All rights reserved.