java.util
public class TreeMap<K,V> extends AbstractMap<K,V> implements SortedMap<K,V>, Cloneable, Serializable
Constructor Summary | |
---|---|
TreeMap() | |
TreeMap(Comparator<K> c) | |
<K1 extends K,V1 extends V> | TreeMap(Map<K1,V1> m) |
<V1 extends V> | TreeMap(SortedMap<K,V1> m) |
Method Summary | |
---|---|
void | clear() |
Object | clone() |
Comparator<K> | comparator() |
boolean | containsKey(Object key) |
boolean | containsValue(Object value) |
Set<Map.Entry<K,V>> | entrySet() |
K | firstKey() |
V | get(K key) |
SortedMap<K,V> | headMap(K toKey) |
Set<K> | keySet() |
K | lastKey() |
V | put(K key, V value) |
<K1 extends K,V1 extends V> void | putAll(Map<K1,V1> map) |
V | remove(Object key) |
int | size() |
SortedMap<K,V> | subMap(K fromKey, K toKey) |
SortedMap<K,V> | tailMap(K fromKey) |
Collection<V> | values() |