V
- Type of values placed in this Map.public class CaseInsensitiveKeyMap<V> extends AbstractMap<String,V>
Locale.ENGLISH
) strings as keys.
Keys must be instances of String
. Note that this means that
null
keys are not permitted.
This implementation is not thread-safe.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CaseInsensitiveKeyMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<String,V>> |
entrySet() |
V |
get(Object key) |
V |
put(String key,
V value) |
void |
putAll(Map<? extends String,? extends V> m)
Use this method with caution.
|
V |
remove(Object key) |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public void putAll(Map<? extends String,? extends V> m)
Use this method with caution. If the input Map contains duplicate keys when the keys are compared in a case insensitive manner then some values will be lost when inserting via this method.
public boolean containsKey(Object key)
containsKey
in interface Map<String,V>
containsKey
in class AbstractMap<String,V>
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.