protected class Namespace.EmptyIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Always returns false, as an empty iterator.
|
java.lang.Object |
next()
Returns a null as we are iterating over nothing.
|
void |
remove()
Returns a false, as no removal
|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator