package net.darkmist.alib.collection;

// new since qcomm

import java.util.Iterator;

public class ArrayIterator<T> extends NonRemovingIterator<T>
{
	private T[] array;
	private int i;

	public ArrayIterator(T[] array)
	{
		this.array = array;
		this.i = 0;
	}

	public boolean hasNext()
	{
		return (i<array.length);
	}

	public T next()
	{
		return array[i++];
	}
}

@@ -36,28 +36,8 @@
 n;%0A%0A
-// new since qcomm%0A%0A
 impo
@@ -60,16 +60,65 @@
 rator;%0A%0A
+/**%0A * Iterator that iterates over an array.%0A */%0A
 public c
@@ -209,16 +209,110 @@
 int i;%0A%0A
+%09/**%0A%09 * Given an array, create an iterator.%0A%09 * @param array The array to iterate over.%0A%09 */%0A
 %09public 

remove new since qcomm message, add javadoc