public final class ReadOnlyArrayIterator<T>
extends java.lang.Object
implements java.util.ListIterator<T>
Constructor and Description |
---|
ReadOnlyArrayIterator(T[] array)
Initializes with the array and the starting and ending position.
|
ReadOnlyArrayIterator(T[] array,
int min,
int max)
Initializes with the array and the starting and ending position.
|
public ReadOnlyArrayIterator(T[] array)
java.lang.NullPointerException
- The array is null.public ReadOnlyArrayIterator(T[] array, int min, int max)
java.lang.NullPointerException
- The array is null.java.lang.IndexOutOfBoundsException
- An index is out of bounds.public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<T>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<T>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<T>
@Deprecated public void remove()
@Deprecated public void set(T t)
set
in interface java.util.ListIterator<T>
java.lang.UnsupportedOperationException
- Always.