java.util.Iterator<T>
public static class Arrays.Iterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
|
T |
next() |
|
void |
remove() |
public Iterator(T[] dataArray)
Note: the array is not cloned, changes to it will affect the values returned by next().
dataArray
- array backing the iterator.