| Package | Description | 
|---|---|
| java.util | 
 Utilities 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
NavigableMap<K,V>
A  
SortedMap extended with navigation methods returning the
 closest matches for given search targets. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
TreeMap<K,V>
This class provides a red-black tree implementation of the SortedMap
 interface. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static <K,V> SortedMap<K,V> | 
Collections.checkedSortedMap(SortedMap<K,V> m,
                Class<K> keyType,
                Class<V> valueType)
 Returns a dynamically typesafe view of the given sorted map,
 where any modification is first checked to ensure that the type
 of the new data is appropriate. 
 | 
SortedMap<K,V> | 
TreeMap.headMap(K toKey)
Returns a view of this Map including all entries with keys less than
  
toKey. | 
SortedMap<K,V> | 
SortedMap.headMap(K toKey)
Returns a view of the portion of the map strictly less than toKey. 
 | 
SortedMap<K,V> | 
NavigableMap.headMap(K toKey)
Returns a view of the portion of the map strictly less than toKey. 
 | 
SortedMap<K,V> | 
TreeMap.subMap(K fromKey,
      K toKey)
Returns a view of this Map including all entries with keys greater or
 equal to  
fromKey and less than toKey (a
 half-open interval). | 
SortedMap<K,V> | 
SortedMap.subMap(K fromKey,
      K toKey)
Returns a view of the portion of the map greater than or equal to
 fromKey, and strictly less than toKey. 
 | 
SortedMap<K,V> | 
NavigableMap.subMap(K fromKey,
      K toKey)
Returns a view of the portion of the map greater than or equal to
 fromKey, and strictly less than toKey. 
 | 
static <K,V> SortedMap<K,V> | 
Collections.synchronizedSortedMap(SortedMap<K,V> m)
Returns a synchronized (thread-safe) sorted map wrapper backed by the
 given map. 
 | 
SortedMap<K,V> | 
TreeMap.tailMap(K fromKey)
Returns a view of this Map including all entries with keys greater or
 equal to  
fromKey. | 
SortedMap<K,V> | 
SortedMap.tailMap(K fromKey)
Returns a view of the portion of the map greater than or equal to
 fromKey. 
 | 
SortedMap<K,V> | 
NavigableMap.tailMap(K fromKey)
Returns a view of the portion of the map greater than or equal to
 fromKey. 
 | 
static <K,V> SortedMap<K,V> | 
Collections.unmodifiableSortedMap(SortedMap<K,? extends V> m)
Returns an unmodifiable view of the given sorted map. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static <K,V> SortedMap<K,V> | 
Collections.checkedSortedMap(SortedMap<K,V> m,
                Class<K> keyType,
                Class<V> valueType)
 Returns a dynamically typesafe view of the given sorted map,
 where any modification is first checked to ensure that the type
 of the new data is appropriate. 
 | 
static <K,V> SortedMap<K,V> | 
Collections.synchronizedSortedMap(SortedMap<K,V> m)
Returns a synchronized (thread-safe) sorted map wrapper backed by the
 given map. 
 | 
static <K,V> SortedMap<K,V> | 
Collections.unmodifiableSortedMap(SortedMap<K,? extends V> m)
Returns an unmodifiable view of the given sorted map. 
 | 
| Constructor and Description | 
|---|
TreeMap(SortedMap<K,? extends V> sm)
Instantiate a new TreeMap, initializing it with all of the elements in
 the provided SortedMap. 
 |