Class SyncSortedMap
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.SyncMap
EDU.oswego.cs.dl.util.concurrent.SyncSortedMap
- All Implemented Interfaces:
Map, SequencedMap, SortedMap
SyncSortedMaps wrap Sync-based control around java.util.SortedMaps.
They support the following additional reader operations over
SyncMap: comparator, subMap, headMap, tailMap, firstKey, lastKey.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class SyncMap
c_, rd_, syncFailures_, wr_ -
Constructor Summary
ConstructorsConstructorDescriptionSyncSortedMap(SortedMap map, ReadWriteLock rwl) Create a new SyncSortedMap protecting the given map, and using the given ReadWriteLock to control reader and writer methods.SyncSortedMap(SortedMap map, Sync sync) Create a new SyncSortedMap protecting the given map, and using the given sync to control both reader and writer methods.SyncSortedMap(SortedMap map, Sync readLock, Sync writeLock) Create a new SyncSortedMap protecting the given map, and using the given pair of locks to control reader and writer methods. -
Method Summary
Methods inherited from class SyncMap
afterRead, beforeRead, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, readerSync, remove, size, syncFailures, values, writerSyncMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
SyncSortedMap
-
SyncSortedMap
Create a new SyncSortedMap protecting the given map, and using the given ReadWriteLock to control reader and writer methods. -
SyncSortedMap
-
-
Method Details
-
baseSortedMap
-
comparator
- Specified by:
comparatorin interfaceSortedMap
-
firstKey
-
lastKey
-
subMap
-
headMap
-
tailMap
-