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.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator