java.util
Class AbstractList.Itr

java.lang.Object
  |
  +--java.util.AbstractList.Itr
Direct Known Subclasses:
AbstractList.ListItr

private class AbstractList.Itr
extends Object
implements Iterator


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
(package private) AbstractList.Itr()
           
 
Method Summary
(package private)  void checkForComodification()
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, 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

AbstractList.Itr

AbstractList.Itr()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

checkForComodification

final void checkForComodification()