Package java.util
Class TreeMap
Description:
Returns a set view of the mappings contained in this map. The set's iterator returns the mappings in ascending key order. Each element in the retunred set is a Map.Entry. The set is backed by this map, so changes to this map are reflected in the set, and vica-versa.
Example
TreeMap treeMap = new TreeMap();
treeMap.put("1", "T");
treeMap.put("2", "r");
treeMap.put("3", "e");
treeMap.put("4", "e");
treeMap.put("5", "M");
treeMap.put("6", "a");
treeMap.put("7", "p");
Logger.log("TreeMap: " + treeMap.entrySet());
The example above returns a set view of the mappings contained in this map.