ArrayIterator Class

com.bea.wlw.netui.util.iterator
ArrayIterator Class

public class ArrayIterator

    extends Object
    implements Iterator

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.


Hierarchy
Object
  ArrayIterator
All Implemented Interfaces

Iterator

Constructor Summary

ArrayIterator(Object array)

 

Method Summary

public boolean
hasNext()
public Object
next()
public void
remove()
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ArrayIterator

public ArrayIterator(Object array)
 

Method Detail

hasNext() Method

public boolean hasNext()

next() Method

public Object next()

remove() Method

public void remove()