unmodifiableKeySet(). By design, the cache is cleared when this structure is mutated. If
this structure is never mutated, it provides a thread-safe view of the backing map.
The MapIteratorCache assumes ownership of the backing map, and cannot guarantee
correctness in the face of external mutations to the backing map. As such, it is strongly
recommended that the caller does not persist a reference to the backing map (unless the backing
map is immutable).
This class is tailored toward use cases in common.graph. It is *NOT* a general purpose map.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private transient volatile Map. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| pack-priv void | |
| pack-priv final boolean | |
| pack-priv V | |
| pack-priv V | |
| pack-priv final V | |
| pack-priv final V | |
| pack-priv final V | |
| pack-priv final Set |
| backingMap | back to summary |
|---|---|
| private final Map<K, V> backingMap | |
| cacheEntry | back to summary |
|---|---|
| private transient volatile Map. | |
| MapIteratorCache | back to summary |
|---|---|
| pack-priv MapIteratorCache(Map<K, V> backingMap) | |
| clear | back to summary |
|---|---|
| pack-priv final void clear() | |
| clearCache | back to summary |
|---|---|
| pack-priv void clearCache() | |
| containsKey | back to summary |
|---|---|
| pack-priv final boolean containsKey(Object key) | |
| get | back to summary |
|---|---|
pack-priv V get(Object key)
| |
| getIfCached | back to summary |
|---|---|
pack-priv V getIfCached(Object key)
| |
| getWithoutCaching | back to summary |
|---|---|
pack-priv final V getWithoutCaching(Object key)
| |
| put | back to summary |
|---|---|
pack-priv final V put(K key, V value)
| |
| remove | back to summary |
|---|---|
pack-priv final V remove(Object key)
| |
| unmodifiableKeySet | back to summary |
|---|---|
| pack-priv final Set | |