类 LinkedCaseInsensitiveMap<V>

java.lang.Object
cn.taketoday.util.LinkedCaseInsensitiveMap<V>
类型参数:
V - the value type
所有已实现的接口:
Serializable, Cloneable, Map<String,V>

public class LinkedCaseInsensitiveMap<V> extends Object implements Map<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.

作者:
Juergen Hoeller, Phillip Webb, TODAY
2019-12-08 20:20
另请参阅:
  • 构造器详细资料

    • LinkedCaseInsensitiveMap

      public LinkedCaseInsensitiveMap()
      Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the default Locale (by default in lower case).
      另请参阅:
    • LinkedCaseInsensitiveMap

      public LinkedCaseInsensitiveMap(Locale locale)
      Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the given Locale (by default in lower case).
      参数:
      locale - the Locale to use for case-insensitive key conversion
      另请参阅:
    • LinkedCaseInsensitiveMap

      public LinkedCaseInsensitiveMap(int initialCapacity)
      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).
      参数:
      initialCapacity - the initial capacity
      另请参阅:
    • LinkedCaseInsensitiveMap

      public LinkedCaseInsensitiveMap(int initialCapacity, 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).
      参数:
      initialCapacity - the initial capacity
      locale - the Locale to use for case-insensitive key conversion
      另请参阅:
  • 方法详细资料