K - V - public class CopyOnWriteLinkedHashMap<K,V> extends Object implements Map<K,V>, Serializable
LinkedHashMap for use in read mostly situations.
Does not support modification through entry/value collections.
TODO: this may not be entirely thread safe as after the clone operations there's a chance that the referenced
array is replaced by rehashing.| Constructor and Description |
|---|
CopyOnWriteLinkedHashMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object arg0) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object obj) |
V |
get(Object arg0) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K arg0,
V arg1) |
void |
putAll(Map<? extends K,? extends V> arg0) |
V |
remove(Object arg0) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object arg0)
containsValue in interface Map<K,V>public int hashCode()
public boolean equals(Object obj)
Copyright © 2019. All rights reserved.