public class SyncList extends SyncCollection implements List
SyncCollection| Modifier and Type | Class and Description |
|---|---|
class |
SyncList.SyncCollectionListIterator |
SyncCollection.SyncCollectionIteratorc_, rd_, syncFailures_, wr_| Constructor and Description |
|---|
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 sync)
Create a new SyncList protecting the given collection,
and using the given sync to control both 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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
add, addAll, afterRead, beforeRead, clear, contains, containsAll, isEmpty, iterator, readerSync, remove, removeAll, retainAll, size, syncFailures, toArray, toArray, unprotectedIterator, writerSyncpublic SyncList(List list, Sync sync)
public SyncList(List list, ReadWriteLock rwl)
protected List baseList()
public int hashCode()
public boolean equals(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface Listpublic boolean addAll(int index,
Collection coll)
public ListIterator unprotectedListIterator()
public ListIterator listIterator()
listIterator in interface Listpublic ListIterator unprotectedListIterator(int index)
public ListIterator listIterator(int index)
listIterator in interface ListCopyright © 2012-2013 Adele Team | LIG. All Rights Reserved.