Class LazyCollection.LongRangeListIterator

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

public static class LazyCollection.LongRangeListIterator extends LazyCollection.ReadOnlyListIterator<Long>
  • Field Details

    • first

      protected final long first
    • last

      protected final long last
    • index

      protected int index
  • Constructor Details

    • LongRangeListIterator

      public LongRangeListIterator(long first, long last)
      Parameters:
      first - the first element of the range
      last - the last element of the range
    • LongRangeListIterator

      public LongRangeListIterator(long first, long 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 Long next()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public Long previous()
    • nextIndex

      public int nextIndex()
    • previousIndex

      public int previousIndex()