Package | Description |
---|---|
java.util |
Utilities
|
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 |
---|---|
NavigableMap<K,V> |
TreeMap.descendingMap()
Returns a view of the map in reverse order.
|
NavigableMap<K,V> |
NavigableMap.descendingMap()
Returns a reverse order view of the mappings contained in this map.
|
NavigableMap<K,V> |
TreeMap.headMap(K toKey,
boolean inclusive)
Returns a view of this Map including all entries with keys less than
(or equal to, if
inclusive is true) toKey . |
NavigableMap<K,V> |
NavigableMap.headMap(K toKey,
boolean inclusive)
Returns a view of the portion of this map whose keys are less than (or
equal to, if
inclusive is true) toKey . |
NavigableMap<K,V> |
TreeMap.subMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Returns a view of this Map including all entries with keys greater (or
equal to, if
fromInclusive is true) fromKey and
less than (or equal to, if toInclusive is true)
toKey . |
NavigableMap<K,V> |
NavigableMap.subMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Returns a view of the portion of this map whose keys range from
fromKey to toKey . |
NavigableMap<K,V> |
TreeMap.tailMap(K fromKey,
boolean inclusive)
Returns a view of this Map including all entries with keys greater or
equal to
fromKey . |
NavigableMap<K,V> |
NavigableMap.tailMap(K fromKey,
boolean inclusive)
Returns a view of the portion of this map whose keys are greater than (or
equal to, if
inclusive is true) fromKey . |