public class EmptyIterator
extends java.lang.Object
implements java.util.Iterator
Modifier and Type | Field and Description |
---|---|
static EmptyIterator |
instance |
Modifier | Constructor and Description |
---|---|
private |
EmptyIterator()
Creates a new instance of EmptyIterator
|
Modifier and Type | Method and Description |
---|---|
static EmptyIterator |
getInstance() |
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
public static final EmptyIterator instance
public static EmptyIterator getInstance()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
public void remove()
remove
in interface java.util.Iterator