java.util
Class TreeMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.TreeMap
All Implemented Interfaces:
Cloneable, Map, Serializable, SortedMap

public synchronized class TreeMap
extends AbstractMap
implements SortedMap, Cloneable, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
TreeMap()
           
TreeMap(Comparator)
           
TreeMap(Map)
           
TreeMap(SortedMap)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 Comparator comparator()
           
 boolean containsKey(Object)
           
 boolean containsValue(Object)
           
 Set entrySet()
           
 Object firstKey()
           
 Object get(Object)
           
 SortedMap headMap(Object)
           
 Set keySet()
           
 Object lastKey()
           
 Object put(Object, Object)
           
 void putAll(Map)
           
 Object remove(Object)
           
 int size()
           
 SortedMap subMap(Object, Object)
           
 SortedMap tailMap(Object)
           
 Collection values()
           
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

TreeMap

public TreeMap()

TreeMap

public TreeMap(Comparator)

TreeMap

public TreeMap(Map)

TreeMap

public TreeMap(SortedMap)
Method Detail

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

containsKey

public boolean containsKey(Object)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap

containsValue

public boolean containsValue(Object)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

get

public Object get(Object)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

comparator

public Comparator comparator()
Specified by:
comparator in interface SortedMap

firstKey

public Object firstKey()
Specified by:
firstKey in interface SortedMap

lastKey

public Object lastKey()
Specified by:
lastKey in interface SortedMap

putAll

public void putAll(Map)
Specified by:
putAll in interface Map
Overrides:
putAll in class AbstractMap

put

public Object put(Object,
                  Object)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

remove

public Object remove(Object)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

clone

public Object clone()
Overrides:
clone in class AbstractMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class AbstractMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

subMap

public SortedMap subMap(Object,
                        Object)
Specified by:
subMap in interface SortedMap

headMap

public SortedMap headMap(Object)
Specified by:
headMap in interface SortedMap

tailMap

public SortedMap tailMap(Object)
Specified by:
tailMap in interface SortedMap