E - Generic type of this ArrayIteratorpublic class ArrayIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
| Constructor and Description |
|---|
ArrayIterator(E[] array)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
E[] |
getArray() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
public ArrayIterator(E[] array)
array - The array to iterate.public E[] getArray()
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<E>java.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iterator<E>