| Modifier and Type | Field and Description |
|---|---|
| private static final FastCopyHashMap | |
| private volatile FastCopyHashMap | |
| private static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. Removes all of the mappings from this map (optional operation). |
| public CopyOnWriteMap | clone()
Overrides java. Returns a shallow copy of this |
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Overrides java. Implements java. Returns |
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Overrides java. Implements java. Returns |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public V | get(final Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public Set | keySet()
Overrides java. Implements java. Returns a |
| public V | put(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Overrides java. Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public V | putIfAbsent(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Overrides default java. Implements java. If the specified key is not already associated with a value, associates it with the given value. |
| public V | remove(final Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public boolean | remove(final Object
key with which the specified value is associated key, final Object value expected to be associated with the specified key value)Overrides default java. Implements java. Removes the entry for a key only if currently mapped to a given value. |
| public boolean | replace(final K
key with which the specified value is associated key, final V value expected to be associated with the specified key oldValue, final V value to be associated with the specified key newValue)Overrides default java. Implements java. Replaces the entry for a key only if currently mapped to a given value. |
| public V | replace(final K
key with which the specified value is associated key, final V value to be associated with the specified key value)Overrides default java. Implements java. Replaces the entry for a key only if currently mapped to some value. |
| public int | size()
Overrides java. Implements java. Returns the number of key-value mappings in this map. |
| public Collection | values()
Overrides java. Implements java. Returns a |
| EMPTY | back to summary |
|---|---|
| private static final FastCopyHashMap<K, V> EMPTY | |
| map | back to summary |
|---|---|
private volatile FastCopyHashMap<K, V> map
| |
| mapUpdater | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<CopyOnWriteMap<K, V>, FastCopyHashMap<K, V>> mapUpdater | |
| CopyOnWriteMap | back to summary |
|---|---|
| pack-priv CopyOnWriteMap() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| clone | back to summary |
|---|---|
| public CopyOnWriteMap Overrides java. Doc from java. Returns a shallow copy of this
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Overrides java. Implements java. Doc from java. Returns
| |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final Object value) Overrides java. Implements java. Doc from java. Returns
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public V get(final Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| keySet | back to summary |
|---|---|
| public Set Overrides java. Implements java. Doc from java. Returns a
| |
| put | back to summary |
|---|---|
| public V put(final K key, final V value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(final K key, final V value) Overrides default java. Implements java. Doc from java. If the specified key is not already associated
with a value, associates it with the given value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| remove | back to summary |
|---|---|
| public V remove(final Object key) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| remove | back to summary |
|---|---|
| public boolean remove(final Object key, final Object value) Overrides default java. Implements java. Doc from java. Removes the entry for a key only if currently mapped to a given value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| replace | back to summary |
|---|---|
| public boolean replace(final K key, final V oldValue, final V newValue) Overrides default java. Implements java. Doc from java. Replaces the entry for a key only if currently mapped to a given value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| replace | back to summary |
|---|---|
| public V replace(final K key, final V value) Overrides default java. Implements java. Doc from java. Replaces the entry for a key only if currently mapped to some value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| values | back to summary |
|---|---|
| public Collection Overrides java. Implements java. Doc from java. Returns a
| |