protected class AbstractEList.EListIterator<E1> extends AbstractEList.EIterator<E1> implements java.util.ListIterator<E1>
cursor, expectedModCount, lastCursor
Constructor and Description |
---|
AbstractEList.EListIterator()
Creates an instance.
|
AbstractEList.EListIterator(int index)
Creates an instance advanced to the index.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E1 object)
Adds the object at the
next index and advances the iterator past it. |
protected void |
doAdd(E object)
Adds the object at the
next index and advances the iterator past it. |
protected E |
doPrevious()
Returns the previous object and advances the iterator.
|
protected void |
doSet(E object)
|
boolean |
hasPrevious()
Returns whether there are more objects for
previous() . |
int |
nextIndex()
Returns the index of the object that would be returned by calling
next . |
E1 |
previous()
Returns the previous object and advances the iterator.
|
int |
previousIndex()
Returns the index of the object that would be returned by calling
previous . |
void |
set(E1 object)
|
checkModCount, doNext, hasNext, next, remove
public AbstractEList.EListIterator()
public AbstractEList.EListIterator(int index)
index
- the starting index.public boolean hasPrevious()
previous()
.
Returns whether there are more objects.hasPrevious
in interface java.util.ListIterator<E1>
public E1 previous()
doPrevious
.previous
in interface java.util.ListIterator<E1>
java.util.NoSuchElementException
- if the iterator is done.protected E doPrevious()
get
.java.util.NoSuchElementException
- if the iterator is done.public int nextIndex()
next
.nextIndex
in interface java.util.ListIterator<E1>
next
.public int previousIndex()
previous
.previousIndex
in interface java.util.ListIterator<E1>
previous
.public void set(E1 object)
protected void doSet(E object)
public void add(E1 object)
next
index and advances the iterator past it.
This implementation delegates to doAdd(E)
.add
in interface java.util.ListIterator<E1>
object
- the object to add.protected void doAdd(E object)
next
index and advances the iterator past it.
This implementation delegates to add(int, E)
.object
- the object to add.