protected class AbstractEList.EIterator<E1>
extends java.lang.Object
implements java.util.Iterator<E1>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cursor
The current position of the iterator.
|
protected int |
expectedModCount
The modification count of the containing list.
|
protected int |
lastCursor
The previous position of the iterator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkModCount()
Checks that the modification count is as expected.
|
protected E |
doNext()
Returns the next object and advances the iterator.
|
boolean |
hasNext()
Returns whether there are more objects.
|
E1 |
next()
Returns the next object and advances the iterator.
|
void |
remove()
Removes the last object returned by
next() from the list,
it's an optional operation. |
protected int cursor
protected int lastCursor
protected int expectedModCount
public boolean hasNext()
hasNext in interface java.util.Iterator<E1>public E1 next()
doNext.next in interface java.util.Iterator<E1>java.util.NoSuchElementException - if the iterator is done.protected E doNext()
get.java.util.NoSuchElementException - if the iterator is done.public void remove()
next() from the list,
it's an optional operation.
This implementation can also function in a list iterator
to act upon on the object returned by calling previous.remove in interface java.util.Iterator<E1>java.lang.IllegalStateException - if next has not yet been called,
or remove has already been called after the last call to next.protected void checkModCount()
java.util.ConcurrentModificationException - if the modification count is not as expected.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature