EDU.oswego.cs.dl.util.concurrent
public class SyncList extends SyncCollection implements List
Nested Class Summary | |
---|---|
class | SyncList.SyncCollectionListIterator |
Constructor Summary | |
---|---|
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.
| |
SyncList(List list, ReadWriteLock rwl)
Create a new SyncList protecting the given list,
and using the given ReadWriteLock to control reader and writer methods.
| |
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.
|
Method Summary | |
---|---|
void | add(int index, Object o) |
boolean | addAll(int index, Collection coll) |
protected List | baseList() |
boolean | equals(Object o) |
Object | get(int index) |
int | hashCode() |
int | indexOf(Object o) |
int | lastIndexOf(Object o) |
ListIterator | listIterator() |
ListIterator | listIterator(int index) |
Object | remove(int index) |
Object | set(int index, Object o) |
List | subList(int fromIndex, int toIndex) |
ListIterator | unprotectedListIterator() |
ListIterator | unprotectedListIterator(int index) |