Package org.eclipse.emf.common.util
Class AbstractEList.NonResolvingEListIterator<E1>
java.lang.Object
AbstractEList<E>.EIterator<E1>
AbstractEList<E>.EListIterator<E1>
org.eclipse.emf.common.util.AbstractEList.NonResolvingEListIterator<E1>
- All Implemented Interfaces:
Iterator<E1>,ListIterator<E1>
- Direct Known Subclasses:
ArrayDelegatingEList.NonResolvingEListIterator,BasicEList.NonResolvingEListIterator,DelegatingEList.NonResolvingEListIterator
- Enclosing class:
- AbstractEList<E>
protected class AbstractEList.NonResolvingEListIterator<E1>
extends AbstractEList<E>.EListIterator<E1>
An extended read-only list iterator that does not
resolve objects.-
Field Summary
Fields inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
cursor, expectedModCount, lastCursor -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.NonResolvingEListIterator(int index) Creates an instance advanced to the index. -
Method Summary
Methods inherited from class org.eclipse.emf.common.util.AbstractEList.EListIterator
doAdd, doSet, hasPrevious, nextIndex, previous, previousIndexMethods inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
checkModCount, hasNext, nextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
hasNext, next
-
Constructor Details
-
NonResolvingEListIterator
public NonResolvingEListIterator()Creates an instance. -
NonResolvingEListIterator
public NonResolvingEListIterator(int index) Creates an instance advanced to the index.- Parameters:
index- the starting index.
-
-
Method Details
-
doNext
Returns the next object and advances the iterator. This implementation accesses the data storage directly.- Overrides:
doNextin classAbstractEList<E>.EIterator<E1>- Returns:
- the next object.
- Throws:
NoSuchElementException- if the iterator is done.
-
doPrevious
Returns the previous object and advances the iterator. This implementation accesses the data storage directly.- Overrides:
doPreviousin classAbstractEList<E>.EListIterator<E1>- Returns:
- the previous object.
- Throws:
NoSuchElementException- if the iterator is done.
-
remove
public void remove()Throws an exception.- Specified by:
removein interfaceIterator<E1>- Specified by:
removein interfaceListIterator<E1>- Overrides:
removein classAbstractEList<E>.EIterator<E1>- Throws:
UnsupportedOperationException- always because it's not supported.
-
set
Throws an exception.- Specified by:
setin interfaceListIterator<E1>- Overrides:
setin classAbstractEList<E>.EListIterator<E1>- Parameters:
object- the object to set.- Throws:
UnsupportedOperationException- always because it's not supported.
-
add
Throws an exception.- Specified by:
addin interfaceListIterator<E1>- Overrides:
addin classAbstractEList<E>.EListIterator<E1>- Parameters:
object- the object to add.- Throws:
UnsupportedOperationException- always because it's not supported.
-