|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectArrayIterator
public class ArrayIterator
ArrayIterator provides an Iterator over a Java
array. ArrayIterator will return each element in the array
in the order they are stored in the array. Multidimensional arrays are
handled by returning a sequence of sub-arrays. So a three dimensional array
of integers will return a sequence of two dimensional arrays of integers.
This Iterator does not support the remove()
method.
| Constructor Summary | |
|---|---|
ArrayIterator(Object array)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Object |
next()
|
void |
remove()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIterator(Object array)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||