Packageorg.osmf.smpte.tt.utilities
Classpublic class DictionaryUtils
InheritanceDictionaryUtils Inheritance Object



Public Methods
 MethodDefined By
  
clear(d:Dictionary):void
[static] Clears the Dictionary by deleting all key=>value pairs.
DictionaryUtils
  
containsKey(d:Dictionary, key:Object):Boolean
[static] Check whether the given dictionary contains the given key.
DictionaryUtils
  
containsValue(d:Dictionary, value:Object):Boolean
[static] Check whether the given dictionary contains the given value.
DictionaryUtils
  
getKeys(d:Dictionary):Array
[static] Returns an Array of all keys within the specified dictionary.
DictionaryUtils
  
getLength(d:Dictionary):uint
[static] Returns an Array of all values within the specified dictionary.
DictionaryUtils
  
getValues(d:Dictionary):Array
[static] Returns an Array of all values within the specified dictionary.
DictionaryUtils
Method Detail
clear()method
public static function clear(d:Dictionary):void

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Clears the Dictionary by deleting all key=>value pairs.

Parameters

d:Dictionary — The Dictionary instance to clear.

containsKey()method 
public static function containsKey(d:Dictionary, key:Object):Boolean

Check whether the given dictionary contains the given key.

Parameters

d:Dictionary — the dictionary to check for a key
 
key:Object — the key to look up in the dictionary

Returns
Booleantrue if the dictionary contains the given key, false if not
containsValue()method 
public static function containsValue(d:Dictionary, value:Object):Boolean

Check whether the given dictionary contains the given value.

Parameters

d:Dictionary — the dictionary to check for a value
 
value:Object — the value to look up in the dictionary

Returns
Booleantrue if the dictionary contains the given value, false if not
getKeys()method 
public static function getKeys(d:Dictionary):Array

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Returns an Array of all keys within the specified dictionary.

Parameters

d:Dictionary — The Dictionary instance whose keys will be returned.

Returns
Array — Array of keys contained within the Dictionary
getLength()method 
public static function getLength(d:Dictionary):uint

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Returns an Array of all values within the specified dictionary.

Parameters

d:Dictionary — The Dictionary instance whose values will be returned.

Returns
uint — Array of values contained within the Dictionary
getValues()method 
public static function getValues(d:Dictionary):Array

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Returns an Array of all values within the specified dictionary.

Parameters

d:Dictionary — The Dictionary instance whose values will be returned.

Returns
Array — Array of values contained within the Dictionary