org.apache.catalina.util
public final class ParameterMap extends HashMap
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.
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Constructor Summary | |
---|---|
ParameterMap()
Construct a new, empty map with the default initial capacity and
load factor. | |
ParameterMap(int initialCapacity)
Construct a new, empty map with the specified initial capacity and
default load factor.
| |
ParameterMap(int initialCapacity, float loadFactor)
Construct a new, empty map with the specified initial capacity and
load factor.
| |
ParameterMap(Map map)
Construct a new map with the same mappings as the given map.
|
Method Summary | |
---|---|
void | clear()
Remove all mappings from this map.
|
boolean | isLocked()
Return the locked state of this parameter map. |
Object | put(Object key, Object value)
Associate the specified value with the specified key in this map. |
void | putAll(Map map)
Copy all of the mappings from the specified map to this one. |
Object | remove(Object key)
Remove the mapping for this key from the map if present.
|
void | setLocked(boolean locked)
Set the locked state of this parameter map.
|
Parameters: initialCapacity The initial capacity of this map
Parameters: initialCapacity The initial capacity of this map loadFactor The load factor of this map
Parameters: map Map whose contents are dupliated in the new map
Throws: IllegalStateException if this map is currently locked
Parameters: key Key with which the specified value is to be associated value Value to be associated with the specified key
Returns: The previous value associated with the specified key, or
null
if there was no mapping for key
Throws: IllegalStateException if this map is currently locked
Parameters: map Mappings to be stored into this map
Throws: IllegalStateException if this map is currently locked
Parameters: key Key whose mapping is to be removed from the map
Returns: The previous value associated with the specified key, or
null
if there was no mapping for that key
Throws: IllegalStateException if this map is currently locked
Parameters: locked The new locked state