Class CaseInsensitiveMap<V>

  • Type Parameters:
    V - value type.
    All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​V>

    public final class CaseInsensitiveMap<V>
    extends AbstractCaseInsensitiveMap<V>
    This Map is a delegate that transforms all keys to lowercase. Null keys are allowed as that the original backing store (a hashmap by default) supports them. The object delegates on a LinkedHashMap, but changes all keys to AbstractCaseInsensitiveMap.CaseInsensitiveKey which does case-insensitive comparison. On return it again unwraps keys.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      • Methods inherited from class java.util.AbstractMap

        clone, equals, hashCode, putAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • CaseInsensitiveMap

        public CaseInsensitiveMap()
      • CaseInsensitiveMap

        public CaseInsensitiveMap​(int size)
      • CaseInsensitiveMap

        public CaseInsensitiveMap​(int size,
                                  float loadFactor)
      • CaseInsensitiveMap

        public CaseInsensitiveMap​(java.util.Map<java.lang.String,​V> initial)