public final class ArrayListReadOnlyIterator<E> extends Object implements ListIterator<E>
| Constructor and Description |
|---|
ArrayListReadOnlyIterator(E[] array) |
ArrayListReadOnlyIterator(E[] array,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ArrayListReadOnlyIterator(E[] array)
public ArrayListReadOnlyIterator(E[] array, int index)
public void add(E e) throws UnsupportedOperationException
add in interface ListIterator<E>e - the element to addUnsupportedOperationException - because this operation is not supportedListIterator.add(java.lang.Object)public boolean hasNext()
hasNext in interface Iterator<E>hasNext in interface ListIterator<E>ListIterator.hasNext()public boolean hasPrevious()
hasPrevious in interface ListIterator<E>ListIterator.hasPrevious()public E next()
next in interface Iterator<E>next in interface ListIterator<E>ListIterator.next()public int nextIndex()
nextIndex in interface ListIterator<E>ListIterator.nextIndex()public E previous()
previous in interface ListIterator<E>ListIterator.previous()public int previousIndex()
previousIndex in interface ListIterator<E>ListIterator.previousIndex()public void remove()
throws UnsupportedOperationException
remove in interface Iterator<E>remove in interface ListIterator<E>UnsupportedOperationException - because this operation is not supportedListIterator.remove()public void set(E e) throws UnsupportedOperationException
set in interface ListIterator<E>UnsupportedOperationException - because this operation is not supportedListIterator.set(java.lang.Object)Copyright © 2022 MicroStream Software. All rights reserved.