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

Class calitha.collections.HashSet


Extends calitha.collections.AbstractMap.

Defined in: HashSet.js.

Class Summary
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