private class ImmutableSLList.NIL.SLNilListIterator
extends java.lang.Object
implements java.util.Iterator<S>
Constructor and Description |
---|
SLNilListIterator()
creates the NIL list iterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
S |
next() |
void |
remove()
throws an unsupported operation exception as removing elements
is not allowed on immutable lists
|
public S next()
next
in interface java.util.Iterator<S>
public boolean hasNext()
hasNext
in interface java.util.Iterator<S>
public void remove()
remove
in interface java.util.Iterator<S>