Class calitha.collections.HashMap
Extends
calitha.collections.AbstractMap.
Defined in: HashMap.js.
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