public class ArrayIterator<T> extends Object implements ListIterator<T>
Constructor and Description |
---|
ArrayIterator(T[] array) |
ArrayIterator(T[] array,
int start) |
ArrayIterator(T[] array,
int start,
int end) |
ArrayIterator(T[] array,
int start,
int curr,
int end) |
Modifier and Type | Method and Description |
---|---|
void |
add(T e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ArrayIterator(T[] array, int start, int curr, int end)
public ArrayIterator(T[] array, int start, int end)
public ArrayIterator(T[] array, int start)
public ArrayIterator(T[] array)
public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<T>
public T previous()
previous
in interface ListIterator<T>
public int nextIndex()
nextIndex
in interface ListIterator<T>
public int previousIndex()
previousIndex
in interface ListIterator<T>
public void remove()
public void set(T e)
set
in interface ListIterator<T>
public void add(T e)
add
in interface ListIterator<T>
Copyright © 2015. All rights reserved.