java.lang.Object | ||||
↳ | java.util.AbstractMap<K, V> | |||
↳ | java.util.HashMap<K, V> | |||
↳ | java.util.LinkedHashMap<K, V> | |||
↳ | org.springframework.util.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new LinkedCaseInsensitiveMap for the default Locale.
| |||||||||||
Create a new LinkedCaseInsensitiveMap that stores lower-case keys
according to the given Locale.
| |||||||||||
Create a new LinkedCaseInsensitiveMap that wraps a
LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the default Locale. | |||||||||||
Create a new LinkedCaseInsensitiveMap that wraps a
LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the given Locale. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the given key to a case-insensitive key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.LinkedHashMap
| |||||||||||
From class
java.util.HashMap
| |||||||||||
From class
java.util.AbstractMap
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map
|
Create a new LinkedCaseInsensitiveMap for the default Locale.
Create a new LinkedCaseInsensitiveMap that stores lower-case keys according to the given Locale.
locale | the Locale to use for lower-case conversion |
---|
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the default Locale.
initialCapacity | the initial capacity |
---|
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the given Locale.
initialCapacity | the initial capacity |
---|---|
locale | the Locale to use for lower-case conversion |
Convert the given key to a case-insensitive key.
The default implementation converts the key to lower-case according to this Map's Locale.
key | the user-specified key |
---|