public final class EmptyIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Modifier | Constructor and Description |
|---|---|
private |
EmptyIterator() |
| Modifier and Type | Method and Description |
|---|---|
static <T> EmptyIterator<T> |
getInstance()
Returns an instance of the EmptyIterator for the given type.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public static <T> EmptyIterator<T> getInstance()
T - the type of the empty iterator.public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>