Packagecom.elad.framework.utils.collections
Interfacepublic interface IMap extends flash.events.IEventDispatcher
ImplementorsHashMapCollection

IMap is the contract for the HashMapCollection. The class extentiate the IEventDispatcher interface to insure the creating of all the classes to dispach change events.



Public Properties
 PropertyDefined by
  addAll : HashMapCollection
[write-only] Copies all of the mappings from the specified map to this map These mappings will be replace for any mappings that this map had for the keys currently in the specified map.
IMap
  isEmpty : Boolean
[read-only]
IMap
  keySet : Array
[read-only] Returns an array collection of the keys contained in this map.
IMap
  length : int
[read-only] Method to check the size of the HashMap Collection.
IMap
Public Methods
 MethodDefined by
  
addItem(key:*, value:*):void
Add a pair to the collection.
IMap
  
clone():Object
Clone the map, the keys and values themselves are not cloned.
IMap
  
compare(key:*, value:*):Boolean
Compare specified key with the map value for equality.
IMap
  
containsKey(key:*):Boolean
Check if the collection contains a key.
IMap
  
containsValue(value:*):Boolean
Check if collection contain value.
IMap
  
getItemKey(value:*):String
Return the item key based on it's value.
IMap
  
Method to retrieve the values.
IMap
  
getItemValue(key:*):*
Retrieve an item value based on its key.
IMap
  
removeAll():void
IMap
  
removeItemAt(key:*):void
Remove an item based on key.
IMap
  
reset():void
IMap
  
toString():String
Method to convert the map into a string representation consists of a list of key-value.
IMap
Events
 EventSummaryDefined by
   Dispatched when the Map has been updated in some way.IMap
Property detail
addAllproperty
addAll:HashMapCollection  [write-only]

Copies all of the mappings from the specified map to this map These mappings will be replace for any mappings that this map had for the keys currently in the specified map.

Implementation
    public function set addAll(value:HashMapCollection):void
isEmptyproperty 
isEmpty:Boolean  [read-only]Implementation
    public function get isEmpty():Boolean
keySetproperty 
keySet:Array  [read-only]

Returns an array collection of the keys contained in this map.

Implementation
    public function get keySet():Array
lengthproperty 
length:int  [read-only]

Method to check the size of the HashMap Collection.

Implementation
    public function get length():int
Method detail
addItem()method
public function addItem(key:*, value:*):void

Add a pair to the collection.

Parameters
key:* — key.
 
value:* — value
clone()method 
public function clone():Object

Clone the map, the keys and values themselves are not cloned.

Returns
Object — Returns a shallow copy.
compare()method 
public function compare(key:*, value:*):Boolean

Compare specified key with the map value for equality.

Parameters
key:*
 
value:*

Returns
Boolean
containsKey()method 
public function containsKey(key:*):Boolean

Check if the collection contains a key.

Parameters
key:* — collection key.

Returns
Boolean — true|false
containsValue()method 
public function containsValue(value:*):Boolean

Check if collection contain value.

Parameters
value:* — value from any type.

Returns
Boolean — true|false
getItemKey()method 
public function getItemKey(value:*):String

Return the item key based on it's value.

Parameters
value:* — The item value.

Returns
String — The item Key.
getItemsValues()method 
public function getItemsValues():Array

Method to retrieve the values.

Returns
Array — An array with all the values in the map.
getItemValue()method 
public function getItemValue(key:*):*

Retrieve an item value based on its key.

Parameters
key:* — Key can be any type. Usually string.

Returns
* — The value.
removeAll()method 
public function removeAll():void
removeItemAt()method 
public function removeItemAt(key:*):void

Remove an item based on key.

Parameters
key:* — The collection key.
reset()method 
public function reset():void
toString()method 
public function toString():String

Method to convert the map into a string representation consists of a list of key-value.

Returns
String — Returns a string representation of this map. The string representation consists of a list of key-value.
Event detail
collectionChangeevent 
Event object type: mx.events.CollectionEvent

Dispatched when the Map has been updated in some way.