com.jamonapi.utils
Class AppMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.jamonapi.utils.AppMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class AppMap
extends java.util.HashMap

Case Insensitive HashMap() - If the maps key is a string then the following keys are all considered equal: myKey
MYKEY
MyKey
... Other than that this class works like a regular HashMap.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
AppMap()
           
AppMap(int initialCapacity)
          Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).
AppMap(int initialCapacity, float loadFactor)
          Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75).
AppMap(java.util.Map m)
          Constructs an empty HashMap with the specified initial capacity and load factor.
 
Method Summary
 boolean containsKey(java.lang.Object key)
           
protected  java.lang.Object convertKey(java.lang.Object key)
           
static java.util.Map createInstance()
           
static java.lang.Object get(java.util.Map map, java.lang.Object key)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object object)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AppMap

public AppMap()

AppMap

public AppMap(int initialCapacity)
Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).


AppMap

public AppMap(int initialCapacity,
              float loadFactor)
Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75).


AppMap

public AppMap(java.util.Map m)
Constructs an empty HashMap with the specified initial capacity and load factor.

Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object object)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map
Overrides:
containsKey in class java.util.HashMap

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap

get

public static java.lang.Object get(java.util.Map map,
                                   java.lang.Object key)
                            throws AppBaseException
Throws:
AppBaseException

convertKey

protected java.lang.Object convertKey(java.lang.Object key)

createInstance

public static java.util.Map createInstance()