| Modifier and Type | Field and Description |
|---|---|
private int |
cursor
Index of element to be returned by subsequent call to next.
|
private int |
expectedModCount
The modCount value that the iterator believes that the backing
List should have.
|
private int |
lastRet
Index of element returned by most recent call to next or
previous.
|
| Modifier | Constructor and Description |
|---|---|
private |
Itr() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkForComodification()
Checks for concurrent modifications.
|
boolean |
hasNext()
Returns whether there is a next element.
|
E |
next()
Returns the next element.
|
void |
remove()
Removes the current element.
|
private int cursor
private int lastRet
private int expectedModCount
public boolean hasNext()
hasNext in interface java.util.Iterator<E>true if there is a next element,
false if iteration should be terminatedpublic E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>final void checkForComodification()