Class CaseInsensitiveMap<V>

  • Type Parameters:
    V - the type of value stored
    All Implemented Interfaces:
    , <,​V>

    public class CaseInsensitiveMap<V>
    extends <,​V>
    implements 
    An mapped collection where the keys are always strings and access to values is case-insensitive. The case of keys in the map is maintained, but on any access to a key (directly or indirectly), all key comparisons are performed in a case-insensitive manner. The map implementation is intended to support a reasonably finite number (dozens or hundreds, not thousands or millions of key/value pairs. Unlike HashMap, it is based on a sorted list of entries rather than hash bucket. It is also geared towards a largely static map, one that is created and then used without modification.
    See Also:
    Serialized Form
    • Nested Class Summary

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

        < extends ,​ extends >, < extends ,​ extends >
      • Nested classes/interfaces inherited from interface java.util.

        < extends ,​ extends >
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean  key)  
      <<,​V>> entrySet()  
      V  key)  
      boolean isEmpty()  
      <> keySet()  
      V  key, V value)  
      V  key)  
      int size()  
      • Methods inherited from class java.util.

        , , , , , ,
      • Methods inherited from class java.lang.

        , , , , , ,
      • Methods inherited from interface java.util.

        , , , , , , , , , ,
    • Method Detail

      • clear

        public void clear()
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • size

        public int size()
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • put

        public  key,
                     V value)
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • containsKey

        public boolean  key)
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • get

        public  key)
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • remove

        public  key)
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>
      • entrySet

        public <<,​V>> entrySet()
        Specified by:
         in interface <,​V>
        Specified by:
         in class <,​V>
      • keySet

        public <> keySet()
        Specified by:
         in interface <,​V>
        Overrides:
         in class <,​V>