public class EmptyMapIterator<K,V> extends AbstractEmptyMapIterator<K ,V> implements MapIterator <K ,V>, ResettableIterator <K>
| Modifier and Type | Field and Description |
|---|---|
static MapIterator |
INSTANCE
Singleton instance of the iterator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyMapIterator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E obj)
|
static <K |
emptyMapIterator()
Get a typed instance of the iterator.
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
E |
next()
|
int |
nextIndex()
|
E |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
reset()
|
void |
set(E obj)
|
getKey, getValue, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getValue, hasNext, next, remove, setValueresetforEachRemainingpublic static final MapIteratorINSTANCE
public static <K,V> MapIterator <K ,V> emptyMapIterator()
K - the key type
V - the value type
MapIterator
public boolean hasNext()
public E next()
public boolean hasPrevious()
public E previous()
public int nextIndex()
public int previousIndex()
public void add(E obj)
public void set(E obj)
public void remove()
public void reset()