EDU.oswego.cs.dl.util.concurrent
Class CopyOnWriteArrayList.COWIterator
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.COWIterator
- CopyOnWriteArrayList
- ListIterator
protected static class CopyOnWriteArrayList.COWIterator
implements ListIterator
protected Object[] | array - Snapshot of the array *
|
protected int | cursor - Index of element to be returned by subsequent call to next.
|
array
protected final Object[] array
Snapshot of the array *
cursor
protected int cursor
Index of element to be returned by subsequent call to next.
COWIterator
protected COWIterator(Object[] elementArray,
int initialCursor)
add
public void add(Object o)
Not supported. Always throws UnsupportedOperationException.
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
nextIndex
public int nextIndex()
previous
public Object previous()
previousIndex
public int previousIndex()
remove
public void remove()
Not supported. Always throws UnsupportedOperationException.
set
public void set(Object o)
Not supported. Always throws UnsupportedOperationException.