| Package | system.data |
| Interface | public interface Map extends Cloneable, Iterable, Serializable |
| Implementors | ArrayMap, HashMap, TypedMap |
| Method | Defined By | ||
|---|---|---|---|
clear():void
Removes all mappings from this map (optional operation). | Map | ||
![]() | 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 | ||
![]() |
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 | ||
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 | ||
![]() | toSource(indent:int = 0):String
Returns the source code string representation of the object. | Serializable | |
| clear | () | method |
public function clear():voidRemoves 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:* |
Boolean — true 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:* |
Boolean — true 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:* |
* — the value to which this map maps the specified key.
|
| getKeys | () | method |
public function getKeys():ArrayReturns an Array of all the keys in the map.
ReturnsArray — an Array of all the keys in the map.
|
| getValues | () | method |
public function getValues():ArrayReturns an Array of all the values in the map.
ReturnsArray — 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.
Boolean — true if this map contains no key-value mappings.
|
| keyIterator | () | method |
public function keyIterator():IteratorReturns the keys iterator of this map.
ReturnsIterator — 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:* |
* |
| putAll | () | method |
public function putAll(m:Map):voidCopies 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:* |
* |
| size | () | method |
public function size():uintReturns the number of key-value mappings in this map.
Returnsuint — the number of key-value mappings in this map.
|