Packagesystem.data
Interfacepublic interface Map extends Cloneable, Iterable, Serializable
Implementors ArrayMap, HashMap, TypedMap

An object that maps keys to values. A map cannot contain duplicate keys. Each key can map to at most one value.



Public Methods
 MethodDefined By
  
clear():void
Removes all mappings from this map (optional operation).
Map
 Inherited
clone():*
Creates and returns a shallow copy of the object.
Cloneable
  
containsKey(key:*):Boolean
Returns true if this map contains a mapping for the specified key.
Map
  
containsValue(value:*):Boolean
Returns true if this map maps one or more keys to the specified value.
Map
  
get(key:*):*
Returns the value to which this map maps the specified key.
Map
  
getKeys():Array
Returns an Array of all the keys in the map.
Map
  
getValues():Array
Returns an Array of all the values in the map.
Map
  
isEmpty():Boolean
Returns true if this map contains no key-value mappings.
Map
 Inherited
Returns the iterator reference of the object.
Iterable
  
Returns the keys iterator of this map.
Map
  
put(key:*, value:*):*
Associates the specified value with the specified key in this map (optional operation).
Map
  
putAll(m:Map):void
Copies all of the mappings from the specified map to this one.
Map
  
remove(o:*):*
Removes the mapping for this key from this map if it is present (optional operation).
Map
  
size():uint
Returns the number of key-value mappings in this map.
Map
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
Serializable
Method Detail
clear()method
public function clear():void

Removes all mappings from this map (optional operation).

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

Returns true if this map contains a mapping for the specified key.

Parameters

key:*

Returns
Booleantrue if this map contains a mapping for the specified key.
containsValue()method 
public function containsValue(value:*):Boolean

Returns true if this map maps one or more keys to the specified value.

Parameters

value:*

Returns
Booleantrue if this map maps one or more keys to the specified value.
get()method 
public function get(key:*):*

Returns the value to which this map maps the specified key.

Parameters

key:*

Returns
* — the value to which this map maps the specified key.
getKeys()method 
public function getKeys():Array

Returns an Array of all the keys in the map.

Returns
Array — an Array of all the keys in the map.
getValues()method 
public function getValues():Array

Returns an Array of all the values in the map.

Returns
Array — an Array of all the values in the map.
isEmpty()method 
public function isEmpty():Boolean

Returns true if this map contains no key-value mappings.

Returns
Booleantrue if this map contains no key-value mappings.
keyIterator()method 
public function keyIterator():Iterator

Returns the keys iterator of this map.

Returns
Iterator — the keys iterator of this map.
put()method 
public function put(key:*, value:*):*

Associates the specified value with the specified key in this map (optional operation).

Parameters

key:*
 
value:*

Returns
*
putAll()method 
public function putAll(m:Map):void

Copies all of the mappings from the specified map to this one.

Parameters

m:Map

remove()method 
public function remove(o:*):*

Removes the mapping for this key from this map if it is present (optional operation).

Parameters

o:*

Returns
*
size()method 
public function size():uint

Returns the number of key-value mappings in this map.

Returns
uint — the number of key-value mappings in this map.