Package EDU.oswego.cs.dl.util.concurrent
Class CopyOnWriteArrayList.COWSubList.COWSubListIterator
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.COWSubList.COWSubListIterator
-
- All Implemented Interfaces:
Iterator,ListIterator
- Enclosing class:
- CopyOnWriteArrayList.COWSubList
protected class CopyOnWriteArrayList.COWSubList.COWSubListIterator extends Object implements ListIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected ListIteratoriprotected intindex
-
Constructor Summary
Constructors Modifier Constructor Description protectedCOWSubListIterator(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object o)booleanhasNext()booleanhasPrevious()Objectnext()intnextIndex()Objectprevious()intpreviousIndex()voidremove()voidset(Object o)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
i
protected final ListIterator i
-
index
protected final int index
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator
-
next
public Object next()
- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator
-
previous
public Object 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()
- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator
-
set
public void set(Object o)
- Specified by:
setin interfaceListIterator
-
add
public void add(Object o)
- Specified by:
addin interfaceListIterator
-
-