| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
NavigableMap<K,V>
NavigableMap is a SortedMap with navigation methods answering the closest
matches for specified item.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TreeMap<K,V>
TreeMap is an implementation of SortedMap.
|
| Modifier and Type | Method and Description |
|---|---|
SortedMap<K,V> |
TreeMap.headMap(K endKey)
Returns a sorted map over a range of this sorted map with all keys that
are less than the specified
endKey. |
SortedMap<K,V> |
SortedMap.headMap(K endKey)
Returns a sorted map over a range of this sorted map with all keys that
are less than the specified
endKey. |
SortedMap<K,V> |
TreeMap.subMap(K startKey,
K endKey)
Returns a sorted map over a range of this sorted map with all keys
greater than or equal to the specified
startKey and less than the
specified endKey. |
SortedMap<K,V> |
SortedMap.subMap(K startKey,
K endKey)
Returns a sorted map over a range of this sorted map with all keys
greater than or equal to the specified
startKey and less than the
specified endKey. |
static <K,V> SortedMap<K,V> |
Collections.synchronizedSortedMap(SortedMap<K,V> map)
Returns a wrapper on the specified sorted map which synchronizes all
access to the sorted map.
|
SortedMap<K,V> |
TreeMap.tailMap(K startKey)
Returns a sorted map over a range of this sorted map with all keys that
are greater than or equal to the specified
startKey. |
SortedMap<K,V> |
SortedMap.tailMap(K startKey)
Returns a sorted map over a range of this sorted map with all keys that
are greater than or equal to the specified
startKey. |
static <K,V> SortedMap<K,V> |
Collections.unmodifiableSortedMap(SortedMap<K,? extends V> map)
Returns a wrapper on the specified sorted map which throws an
UnsupportedOperationException whenever an attempt is made to
modify the sorted map. |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SortedMap<K,V> |
Collections.synchronizedSortedMap(SortedMap<K,V> map)
Returns a wrapper on the specified sorted map which synchronizes all
access to the sorted map.
|
static <K,V> SortedMap<K,V> |
Collections.unmodifiableSortedMap(SortedMap<K,? extends V> map)
Returns a wrapper on the specified sorted map which throws an
UnsupportedOperationException whenever an attempt is made to
modify the sorted map. |
| Constructor and Description |
|---|
TreeMap(SortedMap<K,? extends V> map)
Constructs a new
TreeMap instance containing the mappings from
the specified SortedMap and using the same comparator. |
Copyright © 2026. All rights reserved.