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

Class calitha.collections.TreeMap


Extends calitha.collections.AbstractMap, calitha.collections.INavigableMap.

Defined in: TreeMap.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
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