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()
Checks for next.
|
X |
next()
Next.
|
void |
remove()
Removes the.
|
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 arrayCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa