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>| 构造器和说明 |
|---|
CaseInsensitiveKeyMap() |
CaseInsensitiveKeyMap(int initialCapacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuescompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic CaseInsensitiveKeyMap()
public CaseInsensitiveKeyMap(int initialCapacity)
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 在接口中 Map<String,V>containsKey 在类中 AbstractMap<String,V>Copyright © 2021. All rights reserved.