open class LinkedCaseInsensitiveMap<V : Any> : MutableMap<String, V>, Serializable, Cloneable
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.
Author
Juergen Hoeller
Since
3.0
LinkedCaseInsensitiveMap()
Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the default Locale (by default in lower case). LinkedCaseInsensitiveMap(locale: Locale)
Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the given Locale (by default in lower case). LinkedCaseInsensitiveMap(initialCapacity: Int)
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap with the given initial capacity and stores case-insensitive keys according to the default Locale (by default in lower case). LinkedCaseInsensitiveMap(initialCapacity: Int, locale: Locale)
Create a new LinkedCaseInsensitiveMap that wraps a LinkedHashMap with the given initial capacity and stores case-insensitive keys according to the given Locale (by default in lower case). |
open val entries: MutableSet<MutableEntry<String, V>> |
|
open val keys: MutableSet<String> |
|
open val size: Int |
|
open val values: MutableCollection<V> |
open fun clear(): Unit |
|
open fun clone(): LinkedCaseInsensitiveMap<V> |
|
open fun containsKey(key: String): Boolean |
|
open fun containsValue(value: V): Boolean |
|
open fun equals(other: Any?): Boolean |
|
open fun get(key: String): V? |
|
open fun getLocale(): Locale
Return the locale used by this |
|
open fun getOrDefault(key: String, defaultValue: V): V |
|
open fun hashCode(): Int |
|
open fun isEmpty(): Boolean |
|
open fun put(key: String, value: V): V? |
|
open fun putAll(from: Map<out String, V>): Unit |
|
open fun remove(key: String): V? |
|
open fun toString(): String |