Skip navigation links
org.apache.commons.collections4.map

Class CaseInsensitiveMap<K,V>

    • Nested Class Summary

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

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

        java.util.Map.Entry<K,V>
    • Constructor Summary

      Constructors 
      Constructor and Description
      CaseInsensitiveMap()
      Constructs a new empty map with default size and load factor.
      CaseInsensitiveMap(int initialCapacity)
      Constructs a new, empty map with the specified initial capacity.
      CaseInsensitiveMap(int initialCapacity, float loadFactor)
      Constructs a new, empty map with the specified initial capacity and load factor.
      CaseInsensitiveMap(java.util.Map<? extends K,? extends V> map)
      Constructor copying elements from another map.
    • Constructor Detail

      • CaseInsensitiveMap

        public CaseInsensitiveMap()
        Constructs a new empty map with default size and load factor.
      • CaseInsensitiveMap

        public CaseInsensitiveMap(int initialCapacity)
        Constructs a new, empty map with the specified initial capacity.
        Parameters:
        initialCapacity - the initial capacity
        Throws:
        java.lang.IllegalArgumentException - if the initial capacity is negative
      • CaseInsensitiveMap

        public CaseInsensitiveMap(int initialCapacity,
                                  float loadFactor)
        Constructs a new, empty map with the specified initial capacity and load factor.
        Parameters:
        initialCapacity - the initial capacity
        loadFactor - the load factor
        Throws:
        java.lang.IllegalArgumentException - if the initial capacity is negative
        java.lang.IllegalArgumentException - if the load factor is less than zero
      • CaseInsensitiveMap

        public CaseInsensitiveMap(java.util.Map<? extends K,? extends V> map)
        Constructor copying elements from another map.

        Keys will be converted to lower case strings, which may cause some entries to be removed (if string representation of keys differ only by character case).

        Parameters:
        map - the map to copy
        Throws:
        java.lang.NullPointerException - if the map is null
    • Method Detail

      • clone

        public CaseInsensitiveMap<K,V> clone()
        Clones the map without cloning the keys or values.
        Returns:
        a shallow clone

"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"