protected static class AbstractDualBidiMap.KeySetIterator<K> extends AbstractIteratorDecorator<K>
Modifier and Type | Field and Description |
---|---|
protected boolean |
canRemove
Whether remove is allowed at present
|
protected K |
lastKey
The last returned key
|
protected AbstractDualBidiMap<K,?> |
parent
The parent map
|
Modifier | Constructor and Description |
---|---|
protected |
KeySetIterator(java.util.Iterator<K> iterator,
AbstractDualBidiMap<K,?> parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
K |
next() |
void |
remove() |
getIterator, hasNext
protected final AbstractDualBidiMap<K,?> parent
protected K lastKey
protected boolean canRemove
protected KeySetIterator(java.util.Iterator<K> iterator, AbstractDualBidiMap<K,?> parent)
iterator
- the iterator to decorateparent
- the parent mappublic K next()
AbstractIteratorDecorator
next
in interface java.util.Iterator<K>
next
in class AbstractIteratorDecorator<K>
public void remove()
remove
in interface java.util.Iterator<K>
remove
in class AbstractUntypedIteratorDecorator<K,K>