|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.jpa.jpql.util.iterator.ArrayIterator<E>
public class ArrayIterator<E>
An ArrayIterator
provides a Iterator
for an array of objects.
Constructor Summary | |
---|---|
ArrayIterator(T... array)
Creates a new ArrayIterator for the specified array. |
|
ArrayIterator(T[] array,
int start,
int length)
Creates a new ArrayIterator for the specified array, starting at the specified
start index and continuing for the specified length. |
Method Summary | |
---|---|
boolean |
hasNext()
|
java.util.Iterator<E> |
iterator()
|
E |
next()
|
void |
remove()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayIterator(T... array)
ArrayIterator
for the specified array.
array
- The object containing the items to iterate overpublic ArrayIterator(T[] array, int start, int length)
ArrayIterator
for the specified array, starting at the specified
start index and continuing for the specified length.
array
- The object containing the items to iterate overstart
- The beginning of the iterationlength
- The length of the iteration
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 arrayMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
public E next()
next
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
public java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |