Class AbstractDualBidiMap.KeySetIterator
java.lang.Object
org.apache.commons.collections.iterators.AbstractIteratorDecorator
org.apache.commons.collections.bidimap.AbstractDualBidiMap.KeySetIterator
- All Implemented Interfaces:
Iterator
- Enclosing class:
- AbstractDualBidiMap
Inner class KeySetIterator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether remove is allowed at presentprotected Object
The last returned keyprotected final AbstractDualBidiMap
The parent mapFields inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
iterator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
KeySetIterator
(Iterator iterator, AbstractDualBidiMap parent) Constructor. -
Method Summary
Methods inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
getIterator, hasNext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
parent
The parent map -
lastKey
The last returned key -
canRemove
protected boolean canRemoveWhether remove is allowed at present
-
-
Constructor Details
-
KeySetIterator
Constructor.- Parameters:
iterator
- the iterator to decorateparent
- the parent map
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator
- Overrides:
next
in classAbstractIteratorDecorator
-
remove
public void remove()- Specified by:
remove
in interfaceIterator
- Overrides:
remove
in classAbstractIteratorDecorator
-