public class ImmutableListIterator<T> extends ImmutableIterator<T> implements ListIterator<T>
array, index, length| Constructor and Description |
|---|
ImmutableListIterator(T[] array,
int length,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
boolean |
hasPrevious() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
nextcheckNext, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, nextforEachRemainingpublic ImmutableListIterator(T[] array, int length, int index)
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 t)
set in interface ListIterator<T>public void add(T t)
add in interface ListIterator<T>Copyright © 2021. All rights reserved.