Class ArrayIterator<E>
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.utility.iterator.ArrayIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public class ArrayIterator<E> extends java.lang.Object implements java.util.Iterator<E>AnArrayIteratorprovides aIteratorfor an array of objects.- Version:
- 2.5
- Since:
- 2.4
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(T... array)Creates a newArrayIteratorfor the specified array.ArrayIterator(T[] array, int start, int length)Creates a newArrayIteratorfor the specified array, starting at the specified start index and continuing for the specified length.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()voidremove()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ArrayIterator
public ArrayIterator(T... array)
Creates a newArrayIteratorfor the specified array.- Parameters:
array- The object containing the items to iterate over
-
ArrayIterator
public ArrayIterator(T[] array, int start, int length)Creates a newArrayIteratorfor the specified array, starting at the specified start index and continuing for the specified length.- Parameters:
array- The object containing the items to iterate overstart- The beginning of the iterationlength- The length of the iteration- Throws:
java.lang.IllegalArgumentException- The start index is either a negative value or greater than the length of the array or the length to copy goes beyond the length of the array
-
-