|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,V>
net.hasor.jdbc.core.LinkedCaseInsensitiveMap<V>
public class LinkedCaseInsensitiveMap<V>
LinkedHashMap variant that stores String keys in a case-insensitive
manner, for example for key-based access in a results table.
Preserves the original order as well as the original casing of keys, while allowing for contains, get and remove calls with any case of key.
Does not support null keys.
| 嵌套类摘要 |
|---|
| 从类 java.util.AbstractMap 继承的嵌套类/接口 |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| 构造方法摘要 | |
|---|---|
LinkedCaseInsensitiveMap()
Create a new LinkedCaseInsensitiveMap for the default Locale. |
|
LinkedCaseInsensitiveMap(int initialCapacity)
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the default Locale. |
|
LinkedCaseInsensitiveMap(int initialCapacity,
Locale locale)
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the given Locale. |
|
LinkedCaseInsensitiveMap(Locale locale)
Create a new LinkedCaseInsensitiveMap that stores lower-case keys according to the given Locale. |
|
| 方法摘要 | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
protected String |
convertKey(String key)
Convert the given key to a case-insensitive key. |
V |
get(Object key)
|
V |
put(String key,
V value)
|
V |
remove(Object key)
|
| 从类 java.util.LinkedHashMap 继承的方法 |
|---|
containsValue, removeEldestEntry |
| 从类 java.util.HashMap 继承的方法 |
|---|
clone, entrySet, isEmpty, keySet, putAll, size, values |
| 从类 java.util.AbstractMap 继承的方法 |
|---|
equals, hashCode, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 从接口 java.util.Map 继承的方法 |
|---|
entrySet, equals, hashCode, isEmpty, keySet, putAll, size, values |
| 构造方法详细信息 |
|---|
public LinkedCaseInsensitiveMap()
String.toLowerCase()public LinkedCaseInsensitiveMap(Locale locale)
locale - the Locale to use for lower-case conversionString.toLowerCase(java.util.Locale)public LinkedCaseInsensitiveMap(int initialCapacity)
LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the default Locale.
initialCapacity - the initial capacityString.toLowerCase()
public LinkedCaseInsensitiveMap(int initialCapacity,
Locale locale)
LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the given Locale.
initialCapacity - the initial capacitylocale - the Locale to use for lower-case conversionString.toLowerCase(java.util.Locale)| 方法详细信息 |
|---|
public V put(String key,
V value)
Map<String,V> 中的 putHashMap<String,V> 中的 putpublic boolean containsKey(Object key)
Map<String,V> 中的 containsKeyHashMap<String,V> 中的 containsKeypublic V get(Object key)
Map<String,V> 中的 getLinkedHashMap<String,V> 中的 getpublic V remove(Object key)
Map<String,V> 中的 removeHashMap<String,V> 中的 removepublic void clear()
Map<String,V> 中的 clearLinkedHashMap<String,V> 中的 clearprotected String convertKey(String key)
The default implementation converts the key to lower-case according to this Map's Locale.
key - the user-specified key
String.toLowerCase(java.util.Locale)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||