Class LazyCollection.IntegerRangeListIterator

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

public static class LazyCollection.IntegerRangeListIterator extends LazyCollection.ReadOnlyListIterator<Integer>
  • Field Details

    • first

      protected final int first
    • last

      protected final int last
    • index

      protected int index
  • Constructor Details

    • IntegerRangeListIterator

      public IntegerRangeListIterator(int first, int last)
      Parameters:
      first - the first element of the range
      last - the last element of the range
    • IntegerRangeListIterator

      public IntegerRangeListIterator(int first, int last, int index)
      Parameters:
      first - the first element of the range
      last - the last element of the range
      index - the starting index of the list iterator
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public Integer next()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public Integer previous()
    • nextIndex

      public int nextIndex()
    • previousIndex

      public int previousIndex()