Class LazyCollection.CachingIterator

java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
All Implemented Interfaces:
Iterator<E>
Direct Known Subclasses:
EnumConversionList.EnumConversionIterator, EnumConversionSetOnSet.EnumConversionIterator, LazyBag.BagIntersectionIterator, LazyCollection.CachingSetIterator, LazyCollection.ExcludingIterator, LazyCollection.FilterIterator, LazyCollection.IntersectionIterator, LazyCollection.IteratorToListIterator, LazyCollection.SubtractionIterator, ModelImpl.InstanceOfList.InstanceOfIterator, OCLOperations.ResolveList.ResolveIterator
Enclosing class:
LazyCollection<E>

public class LazyCollection.CachingIterator extends LazyCollection.ReadOnlyIterator<E>
LazyCollection.ReadOnlyIterator that caches values of the underlying collection.
  • Field Details

    • inner

      protected final Iterator<E> inner
    • i

      protected int i
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public E next()
    • updateCache

      protected final void updateCache(E next)
      Updates the cache with next.
      Parameters:
      next - the next element returned by this iterator