Generated by JsDoc Toolkit 2.3.2 on Sun Jun 13 2010 17:28:18 GMT+0200 (CEST)
HTML template: Codeview

Class calitha.collections.HashMap


Extends calitha.collections.AbstractMap.

Defined in: HashMap.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
calitha.collections.HashMap(initialCapacity, loadFactor)
Hash table based implementation of the Map interface.
Methods borrowed from class calitha.collections.IMap:
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Class Detail
calitha.collections.HashMap(initialCapacity, loadFactor)
Hash table based implementation of the Map interface.

This class is similar to the Java HashMap class

Each key object must have an equals and hashCode method. This is also true for numbers and strings. However you can use the calitha.collections.makeNumberHashCompatible and calitha.collections.makeStringHashCompatible to use those directly.

Parameters:
{Number?} initialCapacity
optional initial capacity
{Number?} loadFactor
optional loadFactor