|
||||||||||||
| 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
org.eclipse.emf.common.util.DelegatingEList.EListIterator
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(java.lang.Object object)
Adds the object at the next index and advances the iterator past it.
|
boolean |
hasPrevious()
Returns whether there are more objects for DelegatingEList.EListIterator.previous().
|
int |
nextIndex()
Returns the index of the object that would be returned by calling next. |
java.lang.Object |
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(java.lang.Object 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, 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()
DelegatingEList.EListIterator.previous().
Returns whether there are more objects.
hasPrevious in interface java.util.ListIteratorpublic java.lang.Object previous()
get.
previous in interface java.util.ListIteratorjava.util.NoSuchElementException - if the iterator is done.public int nextIndex()
next.
nextIndex in interface java.util.ListIteratornext.public int previousIndex()
previous.
previousIndex in interface java.util.ListIteratorprevious.public void set(java.lang.Object object)
next or previous.
This implementation delegates to set.
set in interface java.util.ListIteratorobject - 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(java.lang.Object object)
next index and advances the iterator past it.
This implementation delegates to add(int, Object).
add in interface java.util.ListIteratorobject - 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 | |||||||||||