EDU.oswego.cs.dl.util.concurrent
public class SyncSortedSet extends SyncSet implements SortedSet
| Constructor Summary | |
|---|---|
| SyncSortedSet(SortedSet set, Sync sync)
Create a new SyncSortedSet protecting the given collection,
and using the given sync to control both reader and writer methods.
| |
| SyncSortedSet(SortedSet set, ReadWriteLock rwl)
Create a new SyncSortedSet protecting the given set,
and using the given ReadWriteLock to control reader and writer methods.
| |
| SyncSortedSet(SortedSet set, Sync readLock, Sync writeLock)
Create a new SyncSortedSet protecting the given set,
and using the given pair of locks to control reader and writer methods.
| |
| Method Summary | |
|---|---|
| protected SortedSet | baseSortedSet() |
| Comparator | comparator() |
| Object | first() |
| SortedSet | headSet(Object toElement) |
| Object | last() |
| SortedSet | subSet(Object fromElement, Object toElement) |
| SortedSet | tailSet(Object fromElement) |