java.util.Iteratorpublic class ArrayIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.Object |
array |
|
protected int |
i |
Index into the data array
|
protected int |
n |
Arrays are fixed size; precompute.
|
| Constructor | Description |
|---|---|
ArrayIterator(java.lang.Object array) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
java.lang.Object |
next() |
|
void |
remove() |
Copyright ? 2006-2017 Terence Parr