private static class ImmutableSLList.SLListIterator<T> extends Object implements 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprivate ImmutableList<T> list
public SLListIterator(ImmutableList<T> list)
list - the IList