Package org.eclipse.emf.common.util
Class ArrayDelegatingEList.EListIterator<E1>
java.lang.Object
AbstractEList<E>.EIterator<E1>
AbstractEList<E>.EListIterator<E1>
org.eclipse.emf.common.util.ArrayDelegatingEList.EListIterator<E1>
- All Implemented Interfaces:
Iterator<E1>,ListIterator<E1>
- Enclosing class:
- ArrayDelegatingEList<E>
An extensible list iterator implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]The expected data array of the containing list.Fields inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
cursor, expectedModCount, lastCursor -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.EListIterator(int index) Creates an instance advanced to the index. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks that the modification count and data array are as expected.protected voidvoidremove()Removes the last object returned byAbstractEList.EIterator.next()from the list, it's an optional operation.Methods inherited from class org.eclipse.emf.common.util.AbstractEList.EListIterator
add, doAdd, doPrevious, hasPrevious, nextIndex, previous, previousIndex, setMethods inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
doNext, 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
-
Field Details
-
expectedData
The expected data array of the containing list.
-
-
Constructor Details
-
EListIterator
public EListIterator()Creates an instance. -
EListIterator
public EListIterator(int index) Creates an instance advanced to the index.- Parameters:
index- the starting index.
-
-
Method Details
-
checkModCount
protected void checkModCount()Checks that the modification count and data array are as expected.- Overrides:
checkModCountin classAbstractEList<E>.EIterator<E1>- Throws:
ConcurrentModificationException- if the modification count is not as expected.
-
remove
public void remove()Description copied from class:AbstractEList.EIteratorRemoves the last object returned byAbstractEList.EIterator.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 callingprevious. -
doSet
Description copied from class:AbstractEList.EListIteratorSets the object at the index of the last call tonextorprevious. This implementation delegates toset.- Overrides:
doSetin classAbstractEList<E>.EListIterator<E1>- Parameters:
object- the object to set.
-