Class LazyCollection.ReverseIterator

java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReverseIterator
All Implemented Interfaces:
Iterator<E>
Enclosing class:
LazyCollection<E>

public class LazyCollection.ReverseIterator extends LazyCollection.ReadOnlyIterator<E>
LazyCollection.ReadOnlyIterator that returns the values of the underlying collection in reverse order.
  • Field Details

    • index

      protected int index
  • Constructor Details

    • ReverseIterator

      public ReverseIterator(int lastIndex)
      Creates a new LazyCollection<E>.ReverseIterator for the underlying List.
      Parameters:
      lastIndex - the last index in the underlying list.
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public E next()