Class LazyCollection.SubListListIterator

    • Field Detail

      • fromIndex

        protected final int fromIndex
      • toIndex

        protected final int toIndex
      • i

        protected int i
    • Constructor Detail

      • SubListListIterator

        public SubListListIterator​(int fromIndex,
                                   int toIndex)
        Creates a LazyCollection.SubListListIterator for the range fromIndex, including, to toIndex, excluding.
        Parameters:
        fromIndex - the starting index. inclusive
        toIndex - the ending index, exclusive
      • SubListListIterator

        public SubListListIterator​(int fromIndex,
                                   int toIndex,
                                   int index)
        Creates a LazyCollection.SubListListIterator for the range fromIndex, including, to toIndex, excluding.
        Parameters:
        fromIndex - the starting index, inclusive
        toIndex - the ending index, exclusive
        index - the iterator starting index.
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public E next()
      • nextIndex

        public int nextIndex()
      • hasPrevious

        public boolean hasPrevious()
      • previous

        public E previous()
      • previousIndex

        public int previousIndex()