E - data typepublic class ArrayIterator<E> extends Object implements Iterator<E>
Iterator implementation for arrays.| Modifier and Type | Field and Description |
|---|---|
protected E[] |
array
Array data.
|
protected int |
index
Iteration index.
|
| Constructor and Description |
|---|
ArrayIterator(E... array)
Constructs new
ArrayIterator for the specified array data. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final E[] array
protected int index
public ArrayIterator(E... array)
ArrayIterator for the specified array data.array - array dataCopyright © 2020. All rights reserved.