Class ArrayIterator<E>

java.lang.Object
net.sf.basedb.util.ArrayIterator<E>
All Implemented Interfaces:
Iterator<E>

public class ArrayIterator<E> extends Object implements Iterator<E>
This class implements the Iterator interface for an array of objects.
Version:
2.0
Author:
Nicklas
  • Field Details

    • array

      private final E[] array
      The array to iterate.
    • index

      private int index
      The index of the next element to return.
  • Constructor Details

    • ArrayIterator

      public ArrayIterator(E[] array)
      Create a new ArrayIterator object.
      Parameters:
      array - Array to set.
  • Method Details