|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.util.DelegatingEList.EIterator<E1>
org.eclipse.emf.common.util.DelegatingEList.EListIterator<E1>
protected class DelegatingEList.EListIterator<E1>
An extensible list iterator implementation.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.util.DelegatingEList.EIterator |
|---|
cursor, expectedModCount, lastCursor |
| Constructor Summary | |
|---|---|
DelegatingEList.EListIterator()
Creates an instance. |
|
DelegatingEList.EListIterator(int index)
Creates an instance advanced to the index. |
|
| Method Summary | |
|---|---|
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)
Sets the object at the index of the last call to next or previous. |
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)
Sets the object at the index of the last call to next or previous. |
| Methods inherited from class org.eclipse.emf.common.util.DelegatingEList.EIterator |
|---|
checkModCount, doNext, hasNext, next, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.ListIterator |
|---|
hasNext, next, remove |
| Constructor Detail |
|---|
public DelegatingEList.EListIterator()
public DelegatingEList.EListIterator(int index)
index - the starting index.| Method Detail |
|---|
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)
next or previous.
This implementation delegates to doSet.
set in interface java.util.ListIterator<E1>object - the object to set.
java.lang.IllegalStateException - if next or previous have not yet been called,
or remove or add have already been called
after the last call to next or previous.protected void doSet(E object)
next or previous.
This implementation delegates to set.
object - the object to set.
java.lang.IllegalStateException - if next or previous have not yet been called,
or remove or add have already been called
after the last call to next or previous.public void add(E1 object)
next index and advances the iterator past it.
This implementation delegates to doAdd.
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, Object).
object - the object to add.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||