com.ibm.commons.util
Class ArrayIterator<T>

java.lang.Object
  extended by com.ibm.commons.util.ArrayIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class ArrayIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Array iterator.

This Iterator iterated the content of a Java array.


Constructor Summary
ArrayIterator(java.lang.Object array)
           
ArrayIterator(java.lang.Object array, int first, int last)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterator

public ArrayIterator(java.lang.Object array)

ArrayIterator

public ArrayIterator(java.lang.Object array,
                     int first,
                     int last)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>