Class CopyOnWriteArrayList.COWIterator
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.COWIterator
- All Implemented Interfaces:
Iterator, ListIterator
- Enclosing class:
CopyOnWriteArrayList
-
Field Details
-
array
Snapshot of the array -
cursor
protected int cursorIndex of element to be returned by subsequent call to next.
-
-
Constructor Details
-
COWIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator
-
next
- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator
-
previous
- Specified by:
previousin interfaceListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator
-
remove
public void remove()Not supported. Always throws UnsupportedOperationException.- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator- Throws:
UnsupportedOperationException- remove is not supported by this Iterator.
-
set
Not supported. Always throws UnsupportedOperationException.- Specified by:
setin interfaceListIterator- Throws:
UnsupportedOperationException- set is not supported by this Iterator.
-
add
Not supported. Always throws UnsupportedOperationException.- Specified by:
addin interfaceListIterator- Throws:
UnsupportedOperationException- add is not supported by this Iterator.
-