| Package | ch.capi.data |
| Class | public class LinkedMap |
| Inheritance | LinkedMap DictionnaryMap Object |
IMap that stores the order of the keys added to it.
| Method | Defined By | ||
|---|---|---|---|
Creates a new LinkedMap object. | LinkedMap | ||
![]() | clear():void
Removes all of the mappings from this map. | DictionnaryMap | |
![]() | containsKey(key:*):Boolean
Returns true if this map contains a mapping for the specified key. | DictionnaryMap | |
![]() | containsValue(value:*):Boolean
Returns true if this map maps one or more keys to the specified value. | DictionnaryMap | |
![]() | getValue(key:*):*
Retrieves the value mapped to the specified key or null if there is no mapping for
the key. | DictionnaryMap | |
![]() | isEmpty():Boolean
Returns true if the IMap contains no key-value mappings. | DictionnaryMap | |
keys():Array
Retrieves all the keys contained in the IMap in the order of they
have been added. | LinkedMap | ||
![]() | matches(obj:Object, strict:Boolean = false):Boolean
Compares the IMap and the specified Object pairs
key/value and checks if the values are the same. | DictionnaryMap | |
put(key:*, value:*):*
Associates the specified value with the specified key in the IMap. | LinkedMap | ||
![]() |
Retrieves all the key/value from the source IMap and put them
in the current IMap. | DictionnaryMap | |
![]() | putObject(obj:Object):void
Puts all the key/value from the specified object in the IMap. | DictionnaryMap | |
remove(key:*):*
Removes the mapping for a key from the IMap if it is present. | LinkedMap | ||
![]() | size():uint
Retrieves the number of key-value mappings in the IMap. | DictionnaryMap | |
![]() | toObject():Object
Returns an Object from the IMap. | DictionnaryMap | |
![]() | toString():String
Retrieves a String displaying all the key/value pairs of the DictionnaryMap. | DictionnaryMap | |
values():Array
Retrieves all the values contained in the IMap in the order of
they have been added. | LinkedMap | ||
| LinkedMap | () | Constructor |
public function LinkedMap()
Creates a new LinkedMap object.
| keys | () | method |
override public function keys():Array
Retrieves all the keys contained in the IMap in the order of they
have been added.
Array — An Array containing all the keys.
|
| put | () | method |
override public function put(key:*, value:*):*
Associates the specified value with the specified key in the IMap.
Parameters
key:* — The key.
| |
value:* — The value.
|
* — The previous value mapped to the key or null.
|
| remove | () | method |
override public function remove(key:*):*
Removes the mapping for a key from the IMap if it is present.
Parameters
key:* — The key to remove.
|
* — The mapped value for this key.
|
| values | () | method |
override public function values():Array
Retrieves all the values contained in the IMap in the order of
they have been added.
Array — An Array containing all the values.
|