X - the generic typepublic class ArrayIterator<X>
extends java.lang.Object
implements java.util.Iterator<X>
| Constructor and Description |
|---|
ArrayIterator(X[] array)
Instantiates a new array iterator.
|
| Modifier and Type | Method and Description |
|---|---|
static <X> java.util.Iterator<X> |
asIterator(X[] array)
As iterator.
|
boolean |
hasNext() |
X |
next() |
void |
remove() |
public ArrayIterator(X[] array)
array - the arraypublic boolean hasNext()
hasNext in interface java.util.Iterator<X>public void remove()
remove in interface java.util.Iterator<X>public static <X> java.util.Iterator<X> asIterator(X[] array)
X - the generic typearray - the array