public class CopyOnWriteCaseInsensitiveMap<K,V> extends Object implements Map<K,V>, Serializable
Map that provides copy on write semantics while providing the case-insensitivity of
CaseInsensitiveHashMap. Map implementation values() and entrySet() return unmodifiable
Collection's.| Constructor and Description |
|---|
CopyOnWriteCaseInsensitiveMap() |
CopyOnWriteCaseInsensitiveMap(Map<K,V> that) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
asHashMap()
Returns a copy of
this map which is case insensitive but doesn't have the copy-on-write functionality. |
void |
clear() |
CopyOnWriteCaseInsensitiveMap<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 CopyOnWriteCaseInsensitiveMap<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>public Map<K,V> asHashMap()
this map which is case insensitive but doesn't have the copy-on-write functionality.
This method is useful in which you need a copy of this map in which the assumption of reads vastly outnumbering writes is no
longer trueMap with a copy of this map's entriesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.