K
- type of keyV
- type of datapublic abstract class DataCache<K,V>
extends java.lang.Object
Constructor and Description |
---|
DataCache() |
DataCache(java.util.Map<K,V> initial_data) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<K> |
badKeys() |
void |
clear() |
protected abstract V |
find(K key)
The underlying query method.
|
V |
get(K key)
The public query method.
|
int |
nBadKeys() |
void |
save(K key,
V value)
explicitly load data into the cache
|
protected abstract V find(K key) throws DataException
key
- DataException
public V get(K key)
key
- public int nBadKeys()
public java.util.Set<K> badKeys()
public void clear()