public class CopyOnWriteHashMap<K,V> extends Object implements Map<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.
| Constructor and Description |
|---|
CopyOnWriteHashMap() |
| Modifier and Type | Method and Description |
|---|---|
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() |
Set<K> |
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() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic CopyOnWriteHashMap<K,V> clone()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>Copyright © 2014 Oracle Corporation. All rights reserved.