Package | com.ericfeminella.utils |
Class | public dynamic class HashMap |
Inheritance | HashMap flash.utils.Dictionary |
Implements | IMap |
Method | Defined by | ||
---|---|---|---|
clear():void
Resets all key / values in map to null
| HashMap | ||
containsKey(key:String):Boolean
Determines if a key exists in the current map
| HashMap | ||
containsValue(value:*):Boolean
Determines if a value exists in the current map
| HashMap | ||
getValue(key:String):*
Returns a key value from the current Map
| HashMap | ||
isEmpty():Boolean
Determines if the current map is empty
| HashMap | ||
put(key:String, value:*):void
Adds a key / value to the current Map
| HashMap | ||
remove(key:String):void
Removes a key / value from the current Map
| HashMap | ||
size():int
Returns the size of this map
| HashMap |
clear | () | method |
public function clear():void
Resets all key / values in map to null
containsKey | () | method |
public function containsKey(key:String):Boolean
Determines if a key exists in the current map
Parameterskey:String — the key in which to determine existence in the map
|
Boolean — true if the key exisits, false if not
|
containsValue | () | method |
public function containsValue(value:*):Boolean
Determines if a value exists in the current map
Parametersvalue:* — the value in which to determine existence in the map
|
Boolean — true if the value exisits, false if not
|
getValue | () | method |
public function getValue(key:String):*
Returns a key value from the current Map
Parameterskey:String — the key in which to retrieve the value of
|
* — the value of the specified key
|
isEmpty | () | method |
public function isEmpty():Boolean
Determines if the current map is empty
ReturnsBoolean — true if the current map is empty, false if not
|
put | () | method |
public function put(key:String, value:*):void
Adds a key / value to the current Map
Parameterskey:String — key to add to the map
|
|
value:* — value of the specified key
|
remove | () | method |
public function remove(key:String):void
Removes a key / value from the current Map
Parameterskey:String — key to remove from the map
|
size | () | method |
public function size():int
Returns the size of this map
Returnsint — the current size of the map instance
|