protected static class CopyOnWriteArrayList.COWIterator extends Object implements ListIterator
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
array
Snapshot of the array
|
protected int |
cursor
Index of element to be returned by subsequent call to next.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CopyOnWriteArrayList.COWIterator(Object[] elementArray,
int initialCursor) |
protected final Object[] array
protected int cursor
protected CopyOnWriteArrayList.COWIterator(Object[] elementArray, int initialCursor)
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorUnsupportedOperationException - remove is not supported
by this Iterator.public void set(Object o)
set in interface ListIteratorUnsupportedOperationException - set is not supported
by this Iterator.public void add(Object o)
add in interface ListIteratorUnsupportedOperationException - add is not supported
by this Iterator.Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.