|
|||||||||||
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(Object object)
Adds the object at the next index and advances the iterator past it.
|
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 . |
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(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()
previous()
.
Returns whether there are more objects.
hasPrevious
in interface ListIterator
public Object previous()
get
.
previous
in interface ListIterator
NoSuchElementException
- if the iterator is done.public int nextIndex()
next
.
nextIndex
in interface ListIterator
next
.public int previousIndex()
previous
.
previousIndex
in interface ListIterator
previous
.public void set(Object object)
next
or previous
.
This implementation delegates to set
.
set
in interface ListIterator
object
- the object to set.
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(Object object)
next
index and advances the iterator past it.
This implementation delegates to add(int, Object)
.
add
in interface ListIterator
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 |