K - Cache lookup key typeV - Cache instance value typeD - Data type for creating a new instance valuepublic abstract class CacheBase<K,V,D> extends Object
| Constructor and Description |
|---|
CacheBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract V |
createInstance(K key,
D data)
Creates an instance for the key and data.
|
abstract V |
getInstance(K key,
D data)
Retrieves an instance from the cache.
|
public abstract V getInstance(K key, D data)
key - Cache lookup key for the requested instancedata - Data for createInstance() if the instance is not already cached