Package EDU.oswego.cs.dl.util.concurrent
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:
hasNext
in interfaceIterator
- Specified by:
hasNext
in interfaceListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator
-
next
- Specified by:
next
in interfaceIterator
- Specified by:
next
in interfaceListIterator
-
previous
- Specified by:
previous
in interfaceListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator
-
remove
public void remove()Not supported. Always throws UnsupportedOperationException.- Specified by:
remove
in interfaceIterator
- Specified by:
remove
in interfaceListIterator
- Throws:
UnsupportedOperationException
- remove is not supported by this Iterator.
-
set
Not supported. Always throws UnsupportedOperationException.- Specified by:
set
in interfaceListIterator
- Throws:
UnsupportedOperationException
- set is not supported by this Iterator.
-
add
Not supported. Always throws UnsupportedOperationException.- Specified by:
add
in interfaceListIterator
- Throws:
UnsupportedOperationException
- add is not supported by this Iterator.
-