Class LazyCollection.ReverseListIterator

All Implemented Interfaces:
Iterator<E>, ListIterator<E>
Enclosing class:
LazyCollection<E>

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

    • lastIndex

      protected final int lastIndex
    • index

      protected int index
  • Constructor Details

    • ReverseListIterator

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

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

    • hasNext

      public boolean hasNext()
    • next

      public E next()
    • nextIndex

      public int nextIndex()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public E previous()
    • previousIndex

      public int previousIndex()