java.util.Iterator<K>
, MapIterator<K,V>
, OrderedIterator<K>
, OrderedMapIterator<K,V>
, ResettableIterator<K>
public class EmptyOrderedMapIterator<K,V> extends AbstractEmptyMapIterator<K,V> implements OrderedMapIterator<K,V>, ResettableIterator<K>
Modifier and Type | Field | Description |
---|---|---|
static OrderedMapIterator |
INSTANCE |
Singleton instance of the iterator.
|
Modifier | Constructor | Description |
---|---|---|
protected |
EmptyOrderedMapIterator() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(E obj) |
|
static <K,V> OrderedMapIterator<K,V> |
emptyOrderedMapIterator() |
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, setValue
getKey, getValue, hasNext, next, remove, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious, previous
reset
public static final OrderedMapIterator INSTANCE
public static <K,V> OrderedMapIterator<K,V> emptyOrderedMapIterator()
K
- the key typeV
- the value typeOrderedMapIterator
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()
Copyright © 2001-2019 - Apache Software Foundation