Class ArrayIterator<E>
java.lang.Object
org.eclipse.persistence.jpa.jpql.utility.iterator.ArrayIterator<E>
- All Implemented Interfaces:
Iterator<E>
An
ArrayIterator
provides a Iterator
for an array of objects.- Version:
- 2.5
-
Constructor Summary
ConstructorDescriptionArrayIterator
(T... array) Creates a newArrayIterator
for the specified array.ArrayIterator
(T[] array, int start, int length) Creates a newArrayIterator
for the specified array, starting at the specified start index and continuing for the specified length. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ArrayIterator
public ArrayIterator(T... array) Creates a newArrayIterator
for the specified array.- Parameters:
array
- The object containing the items to iterate over
-
ArrayIterator
public ArrayIterator(T[] array, int start, int length) Creates a newArrayIterator
for 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:
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
-
-
Method Details