|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.COWIterator
protected static class CopyOnWriteArrayList.COWIterator
Field Summary | |
---|---|
protected java.lang.Object[] |
array
Snapshot of the array |
protected int |
cursor
Index of element to be returned by subsequent call to next. |
Constructor Summary | |
---|---|
protected |
CopyOnWriteArrayList.COWIterator(java.lang.Object[] elementArray,
int initialCursor)
|
Method Summary | |
---|---|
void |
add(java.lang.Object o)
Not supported. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
java.lang.Object |
next()
|
int |
nextIndex()
|
java.lang.Object |
previous()
|
int |
previousIndex()
|
void |
remove()
Not supported. |
void |
set(java.lang.Object o)
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.Object[] array
protected int cursor
Constructor Detail |
---|
protected CopyOnWriteArrayList.COWIterator(java.lang.Object[] elementArray, int initialCursor)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in interface java.util.ListIterator
public java.lang.Object previous()
previous
in interface java.util.ListIterator
public int nextIndex()
nextIndex
in interface java.util.ListIterator
public int previousIndex()
previousIndex
in interface java.util.ListIterator
public void remove()
remove
in interface java.util.Iterator
remove
in interface java.util.ListIterator
java.lang.UnsupportedOperationException
- remove is not supported
by this Iterator.public void set(java.lang.Object o)
set
in interface java.util.ListIterator
java.lang.UnsupportedOperationException
- set is not supported
by this Iterator.public void add(java.lang.Object o)
add
in interface java.util.ListIterator
java.lang.UnsupportedOperationException
- add is not supported
by this Iterator.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |