class org.aswing.util.HashMap<K, V>
Instance Fields
function containsKey(key:K): Bool
Tests if the specified object is a key in this HashMap. This operation is very fast if it is a string. @param key The key whose presence in this map is to be tested @return true if this map contains a mapping for the specified
function containsValue(value:V): Bool
Tests if some key maps into the specified value in this HashMap. This operation is more expensive than the containsKey method.
function eachValue(func:Dynamic ->Void): Void
Call func(value) for each value.
func | the function to call |
function getValue(key:K): Dynamic
Same functionity method with different name to get
.
@param key the key whose associated value is to be returned.
@return the value to which this map maps the specified key, or
null if the map contains no mapping for this key
* or it is null value originally.
function put(key:K, value:V): V
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. If value is null, means remove the key from the map. @param key key with which the specified value is to be associated. @param value value to be associated with the specified key. null to remove the key. @return previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the HashMap previously associated null with the specified key.