private static class ImmutableSLList.SLListIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
private ImmutableList<T> |
list
the list of remaining elements
|
| Constructor and Description |
|---|
SLListIterator(ImmutableList<T> list)
constructs the iterator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove()
throws an unsupported operation exception as removing elements
is not allowed on immutable lists
|
private ImmutableList<T> list
public SLListIterator(ImmutableList<T> list)
list - the IListpublic T next()
next in interface java.util.Iterator<T>public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>