Package java.util
Class TreeMap
TreeMap()
TreeMap(Comparator c)
TreeMap(Map m)
TreeMap(SortedMap m)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
constructor TreeMap()
This method constructs a new, empty, and sorted map according to the keys natural order. All keys inserted into the map must implement the Comparable interface. All such keys mus be mutually comparable, and must not throw a ClassCastException for any elements in the map.
constructor TreeMap(Comparator c)
This method constructs a new, empty, and sorted map according to the given comparator. All keys inserted into the map must be mutually comperable by the given comperator, and must not throw a ClassCastException or any elements in the map.
constructor TreeMap(Map m)
This method constructs a new map containing the same mappings as the given map, and is sorted to the keys natural order. All keys inserted into the new map must implement the Comparable interface. All such keys must be mutually comparable, and must not throw a ClassCastException for any elements in the map.
constructor TreeMap(SortedMap m)
This method constructs a new map containing the sam mappings, and is sorted according to the same ordering as the given SortedMap.