Package net.sf.basedb.util
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 Summary
-
Constructor Summary
Constructors Constructor Description ArrayIterator(E[] array)
Create a newArrayIterator
object. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
array
The array to iterate. -
index
private int indexThe index of the next element to return.
-
-
Constructor Details
-
ArrayIterator
Create a newArrayIterator
object.- Parameters:
array
- Array to set.
-
-
Method Details