Home » apache-tomcat-6.0.26-src » org.apache » catalina » util » [javadoc | source]
public final class: ParameterMap [javadoc | source]

All Implemented Interfaces:
    Map, Serializable, Cloneable

Extended implementation of HashMap that includes a locked property. This class can be used to safely expose Catalina internal parameter map objects to user classes without having to clone them in order to avoid modifications. When first created, a ParmaeterMap instance is not locked.
Fields inherited from java.util.HashMap:
DEFAULT_INITIAL_CAPACITY,  MAXIMUM_CAPACITY,  DEFAULT_LOAD_FACTOR,  table,  size,  threshold,  loadFactor,  modCount
Fields inherited from java.util.AbstractMap:
keySet,  values
 public ParameterMap() 
 public ParameterMap(int initialCapacity) 
 public ParameterMap(Map map) 
    Construct a new map with the same mappings as the given map.
    map - Map whose contents are dupliated in the new map
 public ParameterMap(int initialCapacity,
    float loadFactor) 
Method from org.apache.catalina.util.ParameterMap Summary:
clear,   isLocked,   put,   putAll,   remove,   setLocked
Methods from java.util.HashMap:
addEntry,   capacity,   clear,   clone,   containsKey,   containsValue,   createEntry,   entrySet,   get,   getEntry,   hash,   indexFor,   init,   isEmpty,   keySet,   loadFactor,   newEntryIterator,   newKeyIterator,   newValueIterator,   put,   putAll,   remove,   removeEntryForKey,   removeMapping,   resize,   size,   transfer,   values
Methods from java.util.AbstractMap:
access$000,   clear,   clone,   containsKey,   containsValue,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   put,   putAll,   remove,   size,   toString,   values
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.util.ParameterMap Detail:
 public  void clear() 
    Remove all mappings from this map.
 public boolean isLocked() 
    Return the locked state of this parameter map.
 public Object put(Object key,
    Object value) 
    Associate the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.
 public  void putAll(Map map) 
    Copy all of the mappings from the specified map to this one. These mappings replace any mappings that this map had for any of the keys currently in the specified Map.
 public Object remove(Object key) 
    Remove the mapping for this key from the map if present.
 public  void setLocked(boolean locked) 
    Set the locked state of this parameter map.