| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract V | Returns: The requested instanceCache lookup key for the requested instance key, D Data for the instance creation data)Creates an instance for the key and data. |
| public abstract V | Returns: The requested instanceCache lookup key for the requested instance key, D Data for createInstance() if the instance is not already cached data)Retrieves an instance from the cache. |
| CacheBase | back to summary |
|---|---|
| public CacheBase() | |
| createInstance | back to summary |
|---|---|
| protected abstract V createInstance(K key, D data) Creates an instance for the key and data. Must be overridden.
| |
| getInstance | back to summary |
|---|---|
| public abstract V getInstance(K key, D data) Retrieves an instance from the cache. Calls createInstance(key, data) if the cache does not already contain an instance with this key. Ignores data if the cache already contains an instance with this key.
| |