org.apache.catalina.util
クラス ParameterMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--org.apache.catalina.util.ParameterMap
すべての実装インタフェース:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public final class ParameterMap
extends java.util.HashMap

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.

バージョン:
$Revision: 1.2 $ $Date: 2001/07/22 20:25:13 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式

クラス java.util.Map から継承した内部クラス
java.util.Map.Entry
 
コンストラクタの概要
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(java.util.Map map)
          Construct a new map with the same mappings as the given map.
 
メソッドの概要
 void clear()
          Remove all mappings from this map.
 boolean isLocked()
          Return the locked state of this parameter map.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Associate the specified value with the specified key in this map.
 void putAll(java.util.Map map)
          Copy all of the mappings from the specified map to this one.
 java.lang.Object remove(java.lang.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.
 
クラス java.util.HashMap から継承したメソッド
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
クラス java.util.AbstractMap から継承したメソッド
equals, hashCode, toString
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.Map から継承したメソッド
equals, hashCode
 

コンストラクタの詳細

ParameterMap

public ParameterMap()
Construct a new, empty map with the default initial capacity and load factor.

ParameterMap

public ParameterMap(int initialCapacity)
Construct a new, empty map with the specified initial capacity and default load factor.
パラメータ:
initialCapacity - The initial capacity of this map

ParameterMap

public ParameterMap(int initialCapacity,
                    float loadFactor)
Construct a new, empty map with the specified initial capacity and load factor.
パラメータ:
initialCapacity - The initial capacity of this map
loadFactor - The load factor of this map

ParameterMap

public ParameterMap(java.util.Map map)
Construct a new map with the same mappings as the given map.
パラメータ:
map - Map whose contents are dupliated in the new map
メソッドの詳細

isLocked

public boolean isLocked()
Return the locked state of this parameter map.

setLocked

public void setLocked(boolean locked)
Set the locked state of this parameter map.
パラメータ:
locked - The new locked state

clear

public void clear()
Remove all mappings from this map.
オーバーライド:
クラス java.util.HashMap 内の clear
例外:
java.lang.IllegalStateException - if this map is currently locked

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.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.
オーバーライド:
クラス java.util.HashMap 内の put
パラメータ:
key - Key with which the specified value is to be associated
value - Value to be associated with the specified key
戻り値:
The previous value associated with the specified key, or null if there was no mapping for key
例外:
java.lang.IllegalStateException - if this map is currently locked

putAll

public void putAll(java.util.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.
オーバーライド:
クラス java.util.HashMap 内の putAll
パラメータ:
map - Mappings to be stored into this map
例外:
java.lang.IllegalStateException - if this map is currently locked

remove

public java.lang.Object remove(java.lang.Object key)
Remove the mapping for this key from the map if present.
オーバーライド:
クラス java.util.HashMap 内の remove
パラメータ:
key - Key whose mapping is to be removed from the map
戻り値:
The previous value associated with the specified key, or null if there was no mapping for that key
例外:
java.lang.IllegalStateException - if this map is currently locked


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.