org.apache.commons.collections4.map

Class CaseInsensitiveMap<K,V>

    • 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:
        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:
        IllegalArgumentException - if the initial capacity is negative
        IllegalArgumentException - if the load factor is less than zero
      • CaseInsensitiveMap

        public CaseInsensitiveMap(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:
        NullPointerException - if the map is null

Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.