Class Index | File Index

Classes


Class dijon.Dictionary

dijon.Dictionary
Defined in: dijon.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
The Dictionary class lets you create a dynamic collection of properties, which uses strict equality (===) for key comparison.
Method Summary
Method Attributes Method Name and Description
 
add(key, value)
Maps value to key
 
getValue(key)
retrieves the value mapped to key
 
hasValue(key)
checks whether a value has been mapped to key
 
remove(key)
removes the mapping of the value of key
Class Detail
dijon.Dictionary()
The Dictionary class lets you create a dynamic collection of properties, which uses strict equality (===) for key comparison.
Method Detail
{dijon.Dictionary} add(key, value)
Maps value to key
Parameters:
{Object} key
{Object} value
Returns:
{dijon.Dictionary} the Dictionary instance

{Object} getValue(key)
retrieves the value mapped to key
Parameters:
{Object} key
Returns:
{Object} the value mapped to key

{Boolean} hasValue(key)
checks whether a value has been mapped to key
Parameters:
{Object} key
Returns:
{Boolean}

{dijon.Dictionary} remove(key)
removes the mapping of the value of key
Parameters:
{Object} key
Returns:
{dijon.Dictionary} the Dictionary instance

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Oct 19 2011 10:16:18 GMT+0200 (CEST)