SortedMap (Java SE 25 & JDK 25)
- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values
- All Superinterfaces:
Map<K,V>, SequencedMap<K, V>
- All Known Subinterfaces:
ConcurrentNavigableMap<K,V>, NavigableMap<K, V>
- All Known Implementing Classes:
ConcurrentSkipListMap, TreeMap
-
Nested Class Summary
-
Method Summary
Returns the comparator used to order the keys in this map, or
nullif this map uses the natural ordering of its keys.entrySet()Returns a
Setview of the mappings contained in this map.firstKey()Returns the first (lowest) key currently in this map.
Returns a view of the portion of this map whose keys are strictly less than
toKey.keySet()Returns a
Setview of the keys contained in this map.lastKey()Returns the last (highest) key currently in this map.
default VThrows
UnsupportedOperationException.default VThrows
UnsupportedOperationException.reversed()Returns a reverse-ordered view of this map.
Returns a view of the portion of this map whose keys range from
fromKey, inclusive, totoKey, exclusive.Returns a view of the portion of this map whose keys are greater than or equal to
fromKey.values()Returns a
Collectionview of the values contained in this map.Methods declared in interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Method Details
-
comparator
-
subMap
-
headMap
-
tailMap
-
firstKey
-
lastKey
-
keySet
-
values
-
entrySet
-
putFirst
-
putLast
-
reversed
-