org.openstreetmap.josm.tools
Class CopyList.Itr

java.lang.Object
  extended by org.openstreetmap.josm.tools.CopyList.Itr
All Implemented Interfaces:
java.util.Iterator<E>
Enclosing class:
CopyList<E>

private class CopyList.Itr
extends java.lang.Object
implements java.util.Iterator<E>


Field Summary
(package private)  int cursor
          Index of element to be returned by subsequent call to next.
(package private)  int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
(package private)  int lastRet
          Index of element returned by most recent call to next or previous.
 
Constructor Summary
private CopyList.Itr()
           
 
Method Summary
(package private)  void checkForComodification()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cursor

int cursor
Index of element to be returned by subsequent call to next.


lastRet

int lastRet
Index of element returned by most recent call to next or previous. Reset to -1 if this element is deleted by a call to remove.


expectedModCount

int expectedModCount
The modCount value that the iterator believes that the backing List should have. If this expectation is violated, the iterator has detected concurrent modification.

Constructor Detail

CopyList.Itr

private CopyList.Itr()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>

checkForComodification

final void checkForComodification()


JOSM