MapIteratorCache that adds additional caching. In addition to the caching provided by
MapIteratorCache, this structure caches values for the two most recently retrieved keys.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private transient volatile MapRetrievalCache. | |
| private transient volatile MapRetrievalCache. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| pack-priv void | |
| pack-priv V | |
| pack-priv V |
| cacheEntry1 | back to summary |
|---|---|
| private transient volatile MapRetrievalCache. | |
| cacheEntry2 | back to summary |
|---|---|
| private transient volatile MapRetrievalCache. | |
| MapRetrievalCache | back to summary |
|---|---|
| pack-priv MapRetrievalCache(Map<K, V> backingMap) | |
| addToCache | back to summary |
|---|---|
| private void addToCache(K key, V value) | |
| addToCache | back to summary |
|---|---|
| private void addToCache(MapRetrievalCache. | |
| clearCache | back to summary |
|---|---|
| pack-priv void clearCache() Overrides com.
| |
| get | back to summary |
|---|---|
| pack-priv V get(Object key) Overrides com.
| |
| getIfCached | back to summary |
|---|---|
| pack-priv V getIfCached(Object key) Overrides com.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| CacheEntry | back to summary |
|---|---|
| pack-priv CacheEntry(K key, V value) | |