public class CopyOnWriteHashMap<K,V> extends ConcurrentHashMap<K,V>
If an instance is cloned then any methods invoked on the instance or clone that result in state modification will result in copying of the state before modification.
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
CopyOnWriteHashMap() |
CopyOnWriteHashMap(ConcurrentHashMap<K,V> that) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
CopyOnWriteHashMap<K,V> |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
ConcurrentHashMap.KeySetView<K,V> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> t) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, contains, elements, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, keys, keySet, mappingCount, merge, newKeySet, newKeySet, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValuespublic CopyOnWriteHashMap(ConcurrentHashMap<K,V> that)
public CopyOnWriteHashMap()
public CopyOnWriteHashMap<K,V> clone()
clone 在类中 AbstractMap<K,V>public boolean containsKey(Object key)
containsKey 在接口中 Map<K,V>containsKey 在类中 ConcurrentHashMap<K,V>public boolean containsValue(Object value)
containsValue 在接口中 Map<K,V>containsValue 在类中 ConcurrentHashMap<K,V>public ConcurrentHashMap.KeySetView<K,V> keySet()
public Collection<V> values()
public String toString()
toString 在类中 ConcurrentHashMap<K,V>Copyright © 2024. All rights reserved.