Class calitha.collections.HashSet
Extends
calitha.collections.AbstractMap.
Defined in: HashSet.js.
Constructor Attributes | Constructor Name and Description |
---|---|
calitha.collections.HashSet(initialCapacity, loadFactor)
This class implements the Set interface, backed by a hash table (actually a HashMap instance).
|
- 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.HashSet(initialCapacity, loadFactor)
This class implements the Set interface, backed by a hash table (actually a HashMap instance).
This class is similar to the Java HashSet class
Each 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 load factor