K
- the type of keys maintained by this mapV
- the type of mapped valuespublic interface ConcurrentNavigableMap<K,V> extends ConcurrentMap<K,V>, NavigableMap<K,V>
ConcurrentMap
supporting NavigableMap
operations.Modifier and Type | Method and Description |
---|---|
ConcurrentNavigableMap<K,V> |
headMap(K toKey)
Returns a view of the portion of this map whose keys are strictly less
than toKey.
|
ConcurrentNavigableMap<K,V> |
subMap(K fromKey,
K toKey)
Returns a view of the portion of this map whose keys range from
fromKey, inclusive, to toKey, exclusive.
|
ConcurrentNavigableMap<K,V> |
tailMap(K fromKey)
Returns a view of the portion of this map whose keys are
greater than or equal to fromKey.
|
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
ceilingEntry, ceilingKey, descendingEntrySet, descendingKeySet, firstEntry, floorEntry, floorKey, higherEntry, higherKey, lastEntry, lowerEntry, lowerKey, pollFirstEntry, pollLastEntry
ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey)
subMap
in interface NavigableMap<K,V>
subMap
in interface SortedMap<K,V>
fromKey
- low endpoint (inclusive) of the subMap.toKey
- high endpoint (exclusive) of the subMap.ClassCastException
- if fromKey and
toKey cannot be compared to one another using this
map's comparator (or, if the map has no comparator, using
natural ordering).IllegalArgumentException
- if fromKey is greater
than toKey.NullPointerException
- if fromKey or
toKey is null and this map does not support
null keys.ConcurrentNavigableMap<K,V> headMap(K toKey)
headMap
in interface NavigableMap<K,V>
headMap
in interface SortedMap<K,V>
toKey
- high endpoint (exclusive) of the headMap.ClassCastException
- if toKey is not compatible
with this map's comparator (or, if the map has no comparator,
if toKey does not implement Comparable).NullPointerException
- if toKey is null
and this map does not support null keys.ConcurrentNavigableMap<K,V> tailMap(K fromKey)
tailMap
in interface NavigableMap<K,V>
tailMap
in interface SortedMap<K,V>
fromKey
- low endpoint (inclusive) of the tailMap.ClassCastException
- if fromKey is not compatible
with this map's comparator (or, if the map has no comparator,
if fromKey does not implement Comparable).NullPointerException
- if fromKey is null
and this map does not support null keys.Copyright © 2018 JBoss by Red Hat. All rights reserved.