| java.util.HashMap com.opensymphony.xwork.util.XWorkMap
XWorkMap | public class XWorkMap extends HashMap (Code) | | A simple map that guarantees that retrieving objects will never return null and insertions will
perform type conversion if necessary. Empty beans will be created for any key that would
normally returned null using ObjectFactory's
ObjectFactory.buildBean(Classjava.util.Map) buildBean method.
author: Patrick Lightbody author: Mark Woon |
Method Summary | |
public Object | get(Object key) Returns the value to which the specified key is mapped in this identity hash map. | public Object | put(Object key, Object value) Associates the specified value with the specified key in this map. | public void | putAll(Map m) Copies all of the mappings from the specified map to this map These mappings will replace any
mappings that this map had for any of the keys currently in the specified map. |
get | public Object get(Object key)(Code) | | Returns the value to which the specified key is mapped in this identity hash map. If there
is no mapping for this key, create an appropriate object for this key, put it in the map, and
return the new object. Use
XWorkMap.containsKey(Object) to check if there really is a
mapping for a key or not.
Parameters: key - the key whose associated value is to be returned. the value to which this map maps the specified key |
put | public Object put(Object key, Object value)(Code) | | Associates 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.
Parameters: key - key with which the specified value is to be associated. Parameters: value - value to be associated with the specified key. previous value associated with specified key, or null if there was nomapping for key. A null return can also indicate that the HashMappreviously associated null with the specified key. |
putAll | public void putAll(Map m)(Code) | | Copies all of the mappings from the specified map to this map These mappings will replace any
mappings that this map had for any of the keys currently in the specified map.
Parameters: m - mappings to be stored in this map. throws: NullPointerException - if the specified map is null. |
|
|