jodd.util.collection
Class ArrayIterator<E>

java.lang.Object
  extended by jodd.util.collection.ArrayIterator<E>
All Implemented Interfaces:
java.io.Serializable, java.util.Iterator<E>

public class ArrayIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>, java.io.Serializable

Iterator over an array.

See Also:
Serialized Form

Constructor Summary
ArrayIterator(E[] array)
           
ArrayIterator(E[] array, int offset, int len)
           
 
Method Summary
 boolean hasNext()
           
 E 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(E[] array)

ArrayIterator

public ArrayIterator(E[] array,
                     int offset,
                     int len)
Method Detail

hasNext

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

next

public E next()
       throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator<E>
Throws:
java.util.NoSuchElementException

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator<E>
Throws:
java.lang.UnsupportedOperationException


Copyright © 2003-2012 Jodd Team