| Modifier | Constructor and Description |
|---|---|
protected |
EmptyIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Always returns false, as an empty iterator.
|
Object |
next()
Returns a null as we are iterating over nothing.
|
void |
remove()
Returns a false, as no removal
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
public Object next()