Constructordojox.collections.Dictionary

dojo.require("dojox.collections.Dictionary");
defined in dojox/collections/Dictionary.js

Returns an object of type dojox.collections.Dictionary

Usage

function (/*dojox.collections.Dictionary?*/ dictionary) (view source)
parametertypedescription
dictionarydojox.collections.DictionaryOptional. Returns an object of type dojox.collections.Dictionary
fieldtypedescription
.addFunctionAdd a new item to the Dictionary.
.clearFunctionClears the internal dictionary.
.cloneFunctionReturns a new instance of dojox.collections.Dictionary; note the the dictionary is a clone but items might not be.
.contains 
.containsKeyFunctionCheck to see if the dictionary has an entry at key "k".
.containsValueFunctionCheck to see if the dictionary has an entry with value "v".
.count 
.entryFunctionAccessor method; similar to dojox.collections.Dictionary.item but returns the actual Entry object.
.forEachFunctionfunctional iterator, following the mozilla spec.
.getIteratorFunctionGets a dojox.collections.DictionaryIterator for iteration purposes.
.getKeyListFunctionReturns an array of the keys in the dictionary.
.getValueListFunctionReturns an array of the values in the dictionary.
.itemFunctionAccessor method.
.removeFunctionRemoves the item at k from the internal collection.

Jump to PropertiesFunctionsBack to top

Functionadd(k: String, v: Object)
Add a new item to the Dictionary.
Clears the internal dictionary.
Returns a new instance of dojox.collections.Dictionary; note the the dictionary is a clone but items might not be.
Check to see if the dictionary has an entry at key "k".
Check to see if the dictionary has an entry with value "v".
Accessor method; similar to dojox.collections.Dictionary.item but returns the actual Entry object.
FunctionforEach(fn: Function, scope: Object?)
functional iterator, following the mozilla spec.
Gets a dojox.collections.DictionaryIterator for iteration purposes.
Returns an array of the keys in the dictionary.
Returns an array of the values in the dictionary.
Accessor method.
Removes the item at k from the internal collection.

Jump to FunctionsPropertiesBack to top