|
|||||||||||
| 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
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. |
boolean |
hasNext()
Returns whether there are more objects. |
Object |
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 Iteratorpublic Object next()
get.
next in interface IteratorNoSuchElementException - 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 IteratorIllegalStateException - if next has not yet been called,
or remove has already been called after the last call to next.protected void checkModCount()
ConcurrentModificationException - if the modification count is not as expected.
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||