Packageas3.collections
Classpublic class Map
InheritanceMap Inheritance TypedDictionary
ImplementsIMap

Basic IMap implementation.

The Map is actually only a public name of the TypedDictionary from that it inherits the entire implementation.

An exception will be thrown for any trial to add a key, that does not match with the type of the internal TypedDictionary instance. In other words, adding keys of a consistent type will not cause any exception. See the head section of the TypedDictionary for more information.

Runtime of operations (ignores Flash Dictionary runtime)

See also

as3.collections.core.TypedDictionary


Public Properties
 PropertyDefined by
 InheritednumItems : uint
Returns the size of the collection.
TypedDictionary
Protected Properties
 PropertyDefined by
 Inherited_items : Dictionary
Dictionary, that saves the items.
TypedDictionary
 Inherited_keys : Dictionary
Dictionary, that saves the keys.
TypedDictionary
 Inherited_numItems : uint = 0
The size of the collection.
TypedDictionary
 Inherited_typeValidator : KeyTypeValidator
The key type validator.
TypedDictionary
Public Methods
 MethodDefined by
 Inherited
addItem(key:*, item:*):Boolean
Adds a new item to the map.
TypedDictionary
 Inherited
clear():void
Removes all items from the collection.
TypedDictionary
 Inherited
getItem(key:*):*
Returns the item associated with the given key.
TypedDictionary
 Inherited
getIterator(cursor:uint = 0):IIterator
Returns an iterator over the map items starting at the specified position.
TypedDictionary
 Inherited
getKeyIterator(cursor:uint = 0):IIterator
Returns an iterator over the map keys starting at the specified position.
TypedDictionary
 Inherited
getMapIterator(cursor:uint = 0):IMapIterator
Returns a map iterator, which provides additionally access to the key of the last returned item.
TypedDictionary
 Inherited
hasKey(key:*):Boolean
Tests, if the map contains an item for the given key.
TypedDictionary
 Inherited
keysToArray():Array
Returns an array of all keys.
TypedDictionary
 Inherited
removeKey(key:*):*
Removes the key and the item associated with that key.
TypedDictionary
 Inherited
replaceItem(key:*, item:*):Boolean
Replaces the item associated with the given key.
TypedDictionary
 Inherited
toArray():Array
Returns an array of all items in the order of the particular collection.
TypedDictionary
  
toString():String
Info
Map
Method detail
toString()method
public override function toString():String

Info

Returns
String