Class ArrayIterator<T>

    • Field Detail

      • _cnt

        protected int _cnt
        The index of the next array element to return
      • last

        protected final int last
        The index of the last array element to return
      • _elts

        protected final T[] _elts
        The array source for the iterator
    • Constructor Detail

      • ArrayIterator

        public ArrayIterator​(T[] elts)
        Parameters:
        elts - the array which should be iterated over
      • ArrayIterator

        public ArrayIterator​(T[] elts,
                             int start)
        Parameters:
        elts - the array which should be iterated over
        start - the first array index to return
      • ArrayIterator

        public ArrayIterator​(T[] elts,
                             int start,
                             int last)
        Parameters:
        elts - the array which should be iterated over
        start - the first array index to return