org.apache.commons.collections
Class ArrayIterator

java.lang.Object
  |
  +--org.apache.commons.collections.iterators.ArrayIterator
        |
        +--org.apache.commons.collections.ArrayIterator
All Implemented Interfaces:
java.util.Iterator

Deprecated. this class has been moved to the iterators subpackage

public class ArrayIterator
extends ArrayIterator

Implements an Iterator over an array of objects.

Since:
1.0
Version:
$Revision: 1.17.2.1 $
Author:
James Strachan, Mauricio S. Moura, Michael A. Smith

Constructor Summary
ArrayIterator()
          Deprecated. Construct an ArrayIterator.
ArrayIterator(java.lang.Object array)
          Deprecated. Construct an ArrayIterator that will iterate over the values in the specified array.
ArrayIterator(java.lang.Object array, int start)
          Deprecated. Construct an ArrayIterator that will iterate over the values in the specified array.
ArrayIterator(java.lang.Object array, int start, int end)
          Deprecated. Construct an ArrayIterator that will iterate over the values in the specified array.
 
Methods inherited from class org.apache.commons.collections.iterators.ArrayIterator
getArray, hasNext, next, remove, setArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterator

public ArrayIterator()
Deprecated. 
Construct an ArrayIterator. Using this constructor, the iterator is equivalent to an empty iterator until ArrayIterator.setArray(Object) is called to establish the array to iterate over.


ArrayIterator

public ArrayIterator(java.lang.Object array)
Deprecated. 
Construct an ArrayIterator that will iterate over the values in the specified array.

Parameters:
array - the array to iterate over.
Throws:
java.lang.IllegalArgumentException - if array is not an array.
java.lang.NullPointerException - if array is null

ArrayIterator

public ArrayIterator(java.lang.Object array,
                     int start)
Deprecated. 
Construct an ArrayIterator that will iterate over the values in the specified array.

Parameters:
array - the array to iterate over.
start - the index to start iterating at.
Throws:
java.lang.IllegalArgumentException - if array is not an array.
java.lang.NullPointerException - if array is null

ArrayIterator

public ArrayIterator(java.lang.Object array,
                     int start,
                     int end)
Deprecated. 
Construct an ArrayIterator that will iterate over the values in the specified array.

Parameters:
array - the array to iterate over.
start - the index to start iterating at.
end - the index to finish iterating at.
Throws:
java.lang.IllegalArgumentException - if array is not an array.
java.lang.NullPointerException - if array is null


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.