edu.emory.mathcs.backport.java.util.concurrent
public interface ConcurrentNavigableMap extends ConcurrentMap, NavigableMap
This interface is a member of the Java Collections Framework.
Since: 1.6
Method Summary | |
---|---|
NavigableSet | descendingKeySet()
Returns a reverse order NavigableSet view of the keys contained in this map.
|
NavigableMap | descendingMap()
Returns a reverse order view of the mappings contained in this map.
|
NavigableMap | headMap(Object toKey, boolean inclusive) |
SortedMap | headMap(Object toKey) |
Set | keySet()
Returns a NavigableSet view of the keys contained in this map.
|
NavigableSet | navigableKeySet()
Returns a NavigableSet view of the keys contained in this map.
|
NavigableMap | subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) |
SortedMap | subMap(Object fromKey, Object toKey) |
NavigableMap | tailMap(Object fromKey, boolean inclusive) |
SortedMap | tailMap(Object fromKey) |
The view's {@code iterator} is a "weakly consistent" iterator that will never throw java.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.
Returns: a reverse order navigable set view of the keys in this map
The returned map has an ordering equivalent to
Collections.reverseOrder
(comparator()).
The expression {@code m.descendingMap().descendingMap()} returns a
view of {@code m} essentially equivalent to {@code m}.
Returns: a reverse order view of this map
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }
The view's {@code iterator} is a "weakly consistent" iterator that will never throw java.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 method {@code navigableKeySet}.
Returns: a navigable set view of the keys in this map
The view's {@code iterator} is a "weakly consistent" iterator that will never throw java.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.
Returns: a navigable set view of the keys in this map
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }
Throws: ClassCastException {@inheritDoc } NullPointerException {@inheritDoc } IllegalArgumentException {@inheritDoc }