Packageorg.springextensions.actionscript.utils
Classpublic class DictionaryUtils

Contains utilities for working with Dictionaries.

Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1



Public Methods
 MethodDefined by
  
containsKey(dictionary:Dictionary, key:Object):Boolean
[static] Check whether the given dictionary contains the given key.
DictionaryUtils
  
containsValue(dictionary:Dictionary, value:Object):Boolean
[static] Check whether the given dictionary contains the given value.
DictionaryUtils
  
getKeys(dictionary:Dictionary):Array
[static] Returns an array with the keys of the dictionary.
DictionaryUtils
Method detail
containsKey()method
public static function containsKey(dictionary:Dictionary, key:Object):Boolean

Check whether the given dictionary contains the given key.

Parameters
dictionary: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(dictionary:Dictionary, value:Object):Boolean

Check whether the given dictionary contains the given value.

Parameters
dictionary: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(dictionary:Dictionary):Array

Returns an array with the keys of the dictionary.

Parameters
dictionary:Dictionary

Returns
Array