| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SyncCollection EDU.oswego.cs.dl.util.concurrent.SyncList
SyncList | public class SyncList extends SyncCollection implements List(Code) | | SyncLists wrap Sync-based control around java.util.Lists.
They support the following additional reader operations over
SyncCollection: hashCode, equals, get, indexOf, lastIndexOf,
subList. They support additional writer operations remove(int),
set(int), add(int), addAll(int). The corresponding listIterators
and are similarly extended.
[ Introduction to this package. ]
See Also: SyncCollection |
Inner Class :public class SyncCollectionListIterator extends SyncCollectionIterator implements ListIterator | |
Constructor Summary | |
public | SyncList(List list, Sync sync) Create a new SyncList protecting the given collection,
and using the given sync to control both reader and writer methods. | public | SyncList(List list, ReadWriteLock rwl) Create a new SyncList protecting the given list,
and using the given ReadWriteLock to control reader and writer methods. | public | SyncList(List list, Sync readLock, Sync writeLock) Create a new SyncList protecting the given list,
and using the given pair of locks to control reader and writer methods. |
SyncList | public SyncList(List list, Sync sync)(Code) | | Create a new SyncList protecting the given collection,
and using the given sync to control both reader and writer methods.
Common, reasonable choices for the sync argument include
Mutex, ReentrantLock, and Semaphores initialized to 1.
|
SyncList | public SyncList(List list, ReadWriteLock rwl)(Code) | | Create a new SyncList protecting the given list,
and using the given ReadWriteLock to control reader and writer methods.
|
SyncList | public SyncList(List list, Sync readLock, Sync writeLock)(Code) | | Create a new SyncList protecting the given list,
and using the given pair of locks to control reader and writer methods.
|
hashCode | public int hashCode()(Code) | | |
subList | public List subList(int fromIndex, int toIndex)(Code) | | |
|
|