Class ModifiableDerivedUnionEObjectEList.DerivedUnionIterator

java.lang.Object
com.nomagic.magicdraw.uml2.util.ModifiableDerivedUnionEObjectEList.DerivedUnionIterator
All Implemented Interfaces:
Iterator<E>, ListIterator<E>
Direct Known Subclasses:
ModifiableDerivedUnionEObjectEList.DerivedUnionResolvingIterator, ModifiableDerivedUnionEObjectEList.EmptyDerivedUnionListIterator
Enclosing class:
ModifiableDerivedUnionEObjectEList<E>

public class ModifiableDerivedUnionEObjectEList.DerivedUnionIterator extends Object
Non resolving DerivedUnionEObjectEStoreEList iterator.
  • Field Details

    • expectedModCount

      protected int expectedModCount
      Expected modification count.
  • Constructor Details

    • DerivedUnionIterator

      public DerivedUnionIterator()
  • Method Details

    • findContainerFeature

      protected org.eclipse.emf.ecore.EStructuralFeature findContainerFeature(org.eclipse.emf.ecore.EObject object)
      Returns container feature of for the specified object.
      Parameters:
      object - an object.
      Returns:
      EStructuralFeature object.
    • prepareNext

      protected boolean prepareNext()
    • set

      public void set(Object element)
      Specified by:
      set in interface ListIterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
      Specified by:
      next in interface ListIterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>
      Specified by:
      remove in interface ListIterator<E>
    • add

      public void add(Object element)
      Specified by:
      add in interface ListIterator<E>
    • checkModCount

      protected void checkModCount()
      Checks for modification. If finds unexpected modification then throws an exception.