Class dijon.Dictionary
dijon.Dictionary
Defined in: dijon.js.
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 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