| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectInputStream in = …;
ConcurrentNavigableMap r = (ConcurrentNavigableMap)in.readObject();
Based on 8 examples
public interface ConcurrentNavigableMap extends NavigableMap
A {@link ConcurrentMap} supporting {@link NavigableMap} operations, and recursively so for its navigable sub-maps.
This interface is a member of the Java Collections Framework.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.Map |
---|
Map.Entry |
Method Summary | |
---|---|
NavigableSet |
Returns a reverse order java.util.NavigableSet view of the keys contained in this map. |
ConcurrentNavigableMap |
Returns a reverse order view of the mappings contained in this map. |
ConcurrentNavigableMap |
|
ConcurrentNavigableMap |
|
NavigableSet |
keySet() Returns a java.util.NavigableSet view of the keys contained in this map. |
NavigableSet |
Returns a java.util.NavigableSet view of the keys contained in this map. |
ConcurrentNavigableMap |
|
ConcurrentNavigableMap |
|
ConcurrentNavigableMap |
|
ConcurrentNavigableMap |
|
Methods inherited from class java.util.NavigableMap |
---|
ceilingEntry, ceilingKey, descendingKeySet, descendingMap, firstEntry, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, lastEntry, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, subMap, subMap, tailMap, tailMap |
Methods inherited from class java.util.SortedMap |
---|
comparator, entrySet, firstKey, headMap, keySet, lastKey, subMap, tailMap, values |
Methods inherited from class java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
public NavigableSet descendingKeySet()
The view's {@code iterator} is a "weakly consistent" iterator that will never throw {@link 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.
public ConcurrentNavigableMap descendingMap()
The returned map has an ordering equivalent to {@link Collections#reverseOrder(Comparator) Collections.reverseOrder}(comparator()). The expression {@code m.descendingMap().descendingMap()} returns a view of {@code m} essentially equivalent to {@code m}.
public ConcurrentNavigableMap headMap(Object toKey)
toKey
public ConcurrentNavigableMap headMap(Object toKey, boolean inclusive)
toKey
inclusive
public NavigableSet keySet()
The view's {@code iterator} is a "weakly consistent" iterator that will never throw {@link 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}.
public NavigableSet navigableKeySet()
The view's {@code iterator} is a "weakly consistent" iterator that will never throw {@link 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.
public ConcurrentNavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)
fromKey
fromInclusive
toKey
toInclusive
public ConcurrentNavigableMap subMap(Object fromKey, Object toKey)
fromKey
toKey
public ConcurrentNavigableMap tailMap(Object fromKey)
fromKey
public ConcurrentNavigableMap tailMap(Object fromKey, boolean inclusive)
fromKey
inclusive
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |