Class calitha.collections.TreeMap
Extends
calitha.collections.AbstractMap, calitha.collections.INavigableMap.
Defined in: TreeMap.js.
Constructor Attributes | Constructor Name and Description |
---|---|
calitha.collections.TreeMap(comparator)
A Red-Black tree based NavigableMap implementation.
|
- Methods borrowed from class calitha.collections.INavigableMap:
- ceilingEntry, ceilingKey, descendingKeySet, descendingMap, firstEntry, floorEntry, floorKey, higherEntry, higherKey, lastEntry, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry
- Methods borrowed from class calitha.collections.ISortedMap:
- comparator, firstKey, headMap, lastKey, subMap, tailMap
- 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.TreeMap(comparator)
A Red-Black tree based NavigableMap implementation.
This class is similar to the Java TreeMap class
This map needs a comparator object or function, or all elements must be IComparable. Take a look at the comparator functions in the calitha.collections namespace.
- Parameters:
- {(calitha.collections.IComparator|Function)?} comparator
- optional comparator