org.apache.beehive.netui.util.iterator
Class ArrayIterator

Object
  extended by ArrayIterator
All Implemented Interfaces:
Iterator

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.


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

ArrayIterator

public ArrayIterator(Object array)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator