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.
The array can be either an array of object or of primitives. If you know that you have an object array, the {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}class is a better choice, as it will perform better.
The iterator implements a {@link #reset} method, allowing the reset of the iterator back to the start if required. @since Commons Collections 1.0 @version $Revision: 1.11 $ $Date: 2004/02/18 00:59:50 $ @author James Strachan @author Mauricio S. Moura @author Michael A. Smith @author Neil O'Toole @author Stephen Colebourne
An Iterator wrapper for an Object[]. This will allow us to deal with all array like structures in a consistent manner.
WARNING : this class's operations are NOT synchronized. It is meant to be used in a single thread, newly created for each use in the #foreach() directive. If this is used or shared, synchronize in the next() method.
@since 1.0 @author Jason van Zyl @author Geir Magnusson Jr. @version $Id: ArrayIterator.java 398329 2006-04-30 12:51:43Z dion $An Iterator wrapper for an Object[]. This will allow us to deal with all array like structures in a consistent manner.
WARNING : this class's operations are NOT synchronized. It is meant to be used in a single thread, newly created for each use in the #foreach() directive. If this is used or shared, synchronize in the next() method.
@since 1.0 @author Jason van Zyl @author Geir Magnusson Jr. @version $Id: ArrayIterator.java 889223 2009-12-10 12:05:22Z henrib $An Iterator wrapper for an Object[]. This will allow us to deal with all array like structures in a consistent manner.
WARNING : this class's operations are NOT synchronized. It is meant to be used in a single thread, newly created for each use in the #foreach() directive. If this is used or shared, synchronize in the next() method.
@author Jason van Zyl @author Geir Magnusson Jr. @version $Id: ArrayIterator.java,v 1.6.8.1 2004/03/03 23:23:07 geirm Exp $An Iterator wrapper for an Object[]. This will allow us to deal with all array like structures in a consistent manner.
WARNING : this class's operations are NOT synchronized. It is meant to be used in a single thread, newly created for each use in the #foreach() directive. If this is used or shared, synchronize in the next() method.
@author Jason van Zyl @author Geir Magnusson Jr. @version $Id: ArrayIterator.java 291585 2005-09-26 08:56:23Z henning $The array can be either an array of object or of primitives. If you know that you have an object array, the {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}class is a better choice, as it will perform better.
The iterator implements a {@link #reset} method, allowing the reset of the iterator back to the start if required. @since Commons Collections 1.0 @version $Revision$ $Date$ @author James Strachan @author Mauricio S. Moura @author Michael A. Smith @author Neil O'Toole @author Stephen Colebourne
The array can be either an array of object or of primitives. If you know that you have an object array, the {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}class is a better choice, as it will perform better.
The iterator implements a {@link #reset} method, allowing the reset of the iterator back to the start if required. @since Commons Collections 1.0 @version $Revision$ $Date$ @author James Strachan @author Mauricio S. Moura @author Michael A. Smith @author Neil O'Toole @author Stephen Colebourne
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|