|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.util.BasicEList.EIterator<E1>
protected class BasicEList.EIterator<E1>
An extensible iterator implementation.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
BasicEList.EIterator()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int cursor
protected int lastCursor
protected int expectedModCount
| Constructor Detail |
|---|
protected BasicEList.EIterator()
| Method Detail |
|---|
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 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 | |||||||||