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 Iterator
hasNext
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
UnsupportedOperationException
- remove is not supported
by this Iterator.public void set(Object o)
set
in interface ListIterator
UnsupportedOperationException
- set is not supported
by this Iterator.public void add(Object o)
add
in interface ListIterator
UnsupportedOperationException
- add is not supported
by this Iterator.Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.