Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface ConcurrentNavigableMap
extends ConcurrentMap, NavigableMap
ConcurrentMap
supporting NavigableMap
operations,
and recursively so for its navigable sub-maps.
This interface is a member of the
../../../../../../../../technotes/guides/collections/index.html">
Java Collections Framework.
Method Summary | |
NavigableSet |
|
NavigableMap |
|
SortedMap |
|
NavigableMap |
|
Set |
|
NavigableSet |
|
SortedMap |
|
NavigableMap |
|
SortedMap |
|
NavigableMap |
|
Methods inherited from interface edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap | |
putIfAbsent , remove , replace , replace |
Methods inherited from interface edu.emory.mathcs.backport.java.util.NavigableMap | |
ceilingEntry , ceilingKey , descendingKeySet , descendingMap , firstEntry , floorEntry , floorKey , headMap , headMap , higherEntry , higherKey , lastEntry , lowerEntry , lowerKey , navigableKeySet , pollFirstEntry , pollLastEntry , subMap , subMap , tailMap , tailMap |
public NavigableSet descendingKeySet()
Returns a reverse orderNavigableSet
view of the keys contained in this map. The set's iterator returns the keys in descending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. The set supports element removal, which removes the corresponding mapping from the map, via theIterator.remove
,Set.remove
,removeAll
,retainAll
, andclear
operations. It does not support theadd
oraddAll
operations. The view'siterator
is a "weakly consistent" iterator that will never throwjava.util.ConcurrentModificationException
, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
- Specified by:
- descendingKeySet in interface NavigableMap
- Returns:
- a reverse order navigable set view of the keys in this map
public NavigableMap descendingMap()
Returns a reverse order view of the mappings contained in this map. The descending map is backed by this map, so changes to the map are reflected in the descending map, and vice-versa. The returned map has an ordering equivalent toCollections.reverseOrder
(comparator()). The expressionm.descendingMap().descendingMap()
returns a view ofm
essentially equivalent tom
.
- Specified by:
- descendingMap in interface NavigableMap
- Returns:
- a reverse order view of this map
public NavigableMap headMap(Object toKey, boolean inclusive)
- Specified by:
- headMap in interface NavigableMap
public Set keySet()
Returns aNavigableSet
view of the keys contained in this map. The set's iterator returns the keys in ascending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. The set supports element removal, which removes the corresponding mapping from the map, via theIterator.remove
,Set.remove
,removeAll
,retainAll
, andclear
operations. It does not support theadd
oraddAll
operations. The view'siterator
is a "weakly consistent" iterator that will never throwjava.util.ConcurrentModificationException
, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction. This method is equivalent to methodnavigableKeySet
.
- Returns:
- a navigable set view of the keys in this map
public NavigableSet navigableKeySet()
Returns aNavigableSet
view of the keys contained in this map. The set's iterator returns the keys in ascending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. The set supports element removal, which removes the corresponding mapping from the map, via theIterator.remove
,Set.remove
,removeAll
,retainAll
, andclear
operations. It does not support theadd
oraddAll
operations. The view'siterator
is a "weakly consistent" iterator that will never throwjava.util.ConcurrentModificationException
, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
- Specified by:
- navigableKeySet in interface NavigableMap
- Returns:
- a navigable set view of the keys in this map
public SortedMap subMap(Object fromKey, Object toKey)
- Specified by:
- subMap in interface NavigableMap
public NavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)
- Specified by:
- subMap in interface NavigableMap
public NavigableMap tailMap(Object fromKey, boolean inclusive)
- Specified by:
- tailMap in interface NavigableMap