Class ArrayIterator<T>

java.lang.Object
com.ibm.wala.util.collections.ArrayIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
ArrayNonNullIterator

public class ArrayIterator<T> extends Object implements Iterator<T>
an Iterator of array elements
  • Field Details

    • _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 Details

    • 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
  • Method Details