private static class ImmutableLinkedList.IllIterator<T>
extends java.lang.Object
implements java.util.ListIterator<T>
Modifier and Type | Field and Description |
---|---|
private ImmutableLinkedList<T> |
current |
private int |
nextIndex |
private ImmutableLinkedList<T> |
start |
Modifier | Constructor and Description |
---|---|
private |
IllIterator(ImmutableLinkedList<T> start) |
Modifier and Type | Method and Description |
---|---|
void |
add(T t) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
private final ImmutableLinkedList<T> start
private ImmutableLinkedList<T> current
private int nextIndex
private IllIterator(ImmutableLinkedList<T> start)
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>
public void remove()