| Package | weavejs.util |
| Class | public class Dictionary2D |
| Inheritance | Dictionary2D Object |
| Property | Defined By | ||
|---|---|---|---|
| map : Object
The primary Map object. | Dictionary2D | ||
| Method | Defined By | ||
|---|---|---|---|
Dictionary2D(weakPrimaryKeys:Boolean = false, weakSecondaryKeys:Boolean = false, defaultType:Class = null) | Dictionary2D | ||
forEach(key1_key2_value:Function, thisArg:Object):void
Iterates over pairs of keys and corresponding values. | Dictionary2D | ||
get(key1:Object, key2:Object):* | Dictionary2D | ||
primaryKeys():Array | Dictionary2D | ||
remove(key1:Object, key2:Object):*
This removes a value associated with the given primary and secondary keys. | Dictionary2D | ||
removeAllPrimary(key1:Object):void
This removes all values associated with the given primary key. | Dictionary2D | ||
secondaryKeys(key1:Object):Array | Dictionary2D | ||
set(key1:Object, key2:Object, value:Object):void
This will add or replace an entry in the map. | Dictionary2D | ||
| map | property |
public var map:ObjectThe primary Map object.
| Dictionary2D | () | Constructor |
public function Dictionary2D(weakPrimaryKeys:Boolean = false, weakSecondaryKeys:Boolean = false, defaultType:Class = null)weakPrimaryKeys:Boolean (default = false) | |
weakSecondaryKeys:Boolean (default = false) | |
defaultType:Class (default = null) |
| forEach | () | method |
public function forEach(key1_key2_value:Function, thisArg:Object):voidIterates over pairs of keys and corresponding values.
Parameters
key1_key2_value:Function — A function which may return true to stop iterating.
| |
thisArg:Object — The 'this' argument for the function.
|
| get | () | method |
public function get(key1:Object, key2:Object):*
Parameters
key1:Object — The first map key.
| |
key2:Object — The second map key.
|
* — The value.
|
| primaryKeys | () | method |
public function primaryKeys():ArrayReturnsArray |
| remove | () | method |
public function remove(key1:Object, key2:Object):*This removes a value associated with the given primary and secondary keys.
Parameters
key1:Object — The first dictionary key.
| |
key2:Object — The second dictionary key.
|
* — The value that was in the dictionary.
|
| removeAllPrimary | () | method |
public function removeAllPrimary(key1:Object):voidThis removes all values associated with the given primary key.
Parameters
key1:Object — The first dictionary key.
|
| secondaryKeys | () | method |
public function secondaryKeys(key1:Object):ArrayParameters
key1:Object |
Array |
| set | () | method |
public function set(key1:Object, key2:Object, value:Object):voidThis will add or replace an entry in the map.
Parameters
key1:Object — The first map key.
| |
key2:Object — The second map key.
| |
value:Object — The value.
|