org.eclipse.emf.common.util
Class ArrayDelegatingEList.EListIterator<E1>

java.lang.Object
  extended by org.eclipse.emf.common.util.AbstractEList.EIterator<E1>
      extended by org.eclipse.emf.common.util.AbstractEList.EListIterator<E1>
          extended by org.eclipse.emf.common.util.ArrayDelegatingEList.EListIterator<E1>
All Implemented Interfaces:
java.util.Iterator<E1>, java.util.ListIterator<E1>
Enclosing class:
ArrayDelegatingEList<E>

protected class ArrayDelegatingEList.EListIterator<E1>
extends AbstractEList.EListIterator<E1>

An extensible list iterator implementation.


Field Summary
protected  java.lang.Object[] expectedData
          The expected data array of the containing list.
 
Fields inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
cursor, expectedModCount, lastCursor
 
Constructor Summary
ArrayDelegatingEList.EListIterator()
          Creates an instance.
ArrayDelegatingEList.EListIterator(int index)
          Creates an instance advanced to the index.
 
Method Summary
protected  void checkModCount()
          Checks that the modification count and data array are as expected.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEList.EListIterator
add, doAdd, doPrevious, doSet, hasPrevious, nextIndex, previous, previousIndex, set
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEList.EIterator
doNext, 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
 

Field Detail

expectedData

protected java.lang.Object[] expectedData
The expected data array of the containing list.

Constructor Detail

ArrayDelegatingEList.EListIterator

public ArrayDelegatingEList.EListIterator()
Creates an instance.


ArrayDelegatingEList.EListIterator

public ArrayDelegatingEList.EListIterator(int index)
Creates an instance advanced to the index.

Parameters:
index - the starting index.
Method Detail

checkModCount

protected void checkModCount()
Checks that the modification count and data array are as expected.

Overrides:
checkModCount in class AbstractEList.EIterator<E1>
Throws:
java.util.ConcurrentModificationException - if the modification count is not as expected.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.