- All Implemented Interfaces:
Iterator<Object>
Iterator for an array so I don't have to copy the array to a
List
just to make it implement
Iterator
.
-
Field Summary
Fields
protected int
Index into the data array
protected int
Arrays are fixed size; precompute.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
i
protected int i
Index into the data array
-
-
n
protected int n
Arrays are fixed size; precompute.
-
Constructor Details
-
ArrayIterator
public ArrayIterator(Object array)
-