Packagecom.ericfeminella.utils
Classpublic dynamic class HashMap
InheritanceHashMap Inheritance flash.utils.Dictionary
ImplementsIMap

IMap implementation which dynamically creates a HashMap of key and value pairs as well as provides a atandard API for working with the HashMap



Public Methods
 MethodDefined 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
Method detail
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

Parameters
key:String — the key in which to determine existence in the map

Returns
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

Parameters
value:* — the value in which to determine existence in the map

Returns
Boolean — true if the value exisits, false if not
getValue()method 
public function getValue(key:String):*

Returns a key value from the current Map

Parameters
key:String — the key in which to retrieve the value of

Returns
* — the value of the specified key
isEmpty()method 
public function isEmpty():Boolean

Determines if the current map is empty

Returns
Boolean — 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

Parameters
key: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

Parameters
key:String — key to remove from the map
size()method 
public function size():int

Returns the size of this map

Returns
int — the current size of the map instance