public class ArrayListIterator<E> extends ArrayIterator<E> implements ListIterator<E>
ListIterator implementation for arrays.array, index| Constructor and Description |
|---|
ArrayListIterator(E... array)
Constructs new
ArrayListIterator for the specified array data. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E e) |
boolean |
hasPrevious() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
set(E e) |
hasNext, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, next, removeforEachRemainingpublic ArrayListIterator(E... array)
ArrayListIterator for the specified array data.array - array datapublic boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>public int nextIndex()
nextIndex in interface ListIterator<E>public int previousIndex()
previousIndex in interface ListIterator<E>public void set(E e)
set in interface ListIterator<E>public void add(E e)
add in interface ListIterator<E>Copyright © 2020. All rights reserved.