|
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.Object org.eclipse.persistence.jpa.jpql.util.iterator.ArrayIterator<E> org.eclipse.persistence.jpa.jpql.util.iterator.ArrayListIterator<E>
public class ArrayListIterator<E>
An ArrayListIterator
provides a ListIterator
for an array of objects.
The name might be a bit confusing: this is a ListIterator
for an Array Array
;
not an Iterator
for an ArrayList
.
Constructor Summary | |
---|---|
ArrayListIterator(T... array)
Creates a new ArrayListIterator for the specified array. |
|
ArrayListIterator(T[] array,
int start,
int length)
Creates a new ArrayListIterator for the specified array, starting at the
specified start index and continuing for the specified length. |
Method Summary | |
---|---|
void |
add(E item)
|
boolean |
hasPrevious()
|
java.util.ListIterator<E> |
iterator()
|
int |
nextIndex()
|
E |
previous()
|
int |
previousIndex()
|
void |
set(E item)
|
Methods inherited from class org.eclipse.persistence.jpa.jpql.util.iterator.ArrayIterator |
---|
hasNext, next, remove, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
---|
hasNext, next, remove |
Constructor Detail |
---|
public ArrayListIterator(T... array)
ArrayListIterator
for the specified array.
array
- The object containing the items to iterate overpublic ArrayListIterator(T[] array, int start, int length)
ArrayListIterator
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 iterationMethod Detail |
---|
public void add(E item)
add
in interface java.util.ListIterator<E>
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<E>
public java.util.ListIterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface IterableListIterator<E>
iterator
in class ArrayIterator<E>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<E>
public E previous()
previous
in interface java.util.ListIterator<E>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<E>
public void set(E item)
set
in interface java.util.ListIterator<E>
|
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 |