org.ungoverned.oscar.util
Class CaseInsensitiveMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.TreeMap
          extended byorg.ungoverned.oscar.util.CaseInsensitiveMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, java.util.SortedMap

public class CaseInsensitiveMap
extends java.util.TreeMap

Simple utility class that creates a case-insensitive map by extending TreeMap and to use a case-insensitive comparator. Any keys put into this map will be converted to a String using the toString() method, since it is intended to compare strings.

See Also:
Serialized Form

Constructor Summary
CaseInsensitiveMap()
           
CaseInsensitiveMap(java.util.Map map)
           
 
Method Summary
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

CaseInsensitiveMap

public CaseInsensitiveMap()

CaseInsensitiveMap

public CaseInsensitiveMap(java.util.Map map)
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)