EDU.oswego.cs.dl.util.concurrent
public class SyncSortedMap extends SyncMap implements SortedMap
| Constructor Summary | |
|---|---|
| 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, 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 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 | |
|---|---|
| protected SortedMap | baseSortedMap() |
| Comparator | comparator() |
| Object | firstKey() |
| SortedMap | headMap(Object toElement) |
| Object | lastKey() |
| SortedMap | subMap(Object fromElement, Object toElement) |
| SortedMap | tailMap(Object fromElement) |