Class AbstractDualBidiMap.KeySetIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.AbstractIteratorDecorator
-
- org.apache.commons.collections.bidimap.AbstractDualBidiMap.KeySetIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Enclosing class:
- AbstractDualBidiMap
protected static class AbstractDualBidiMap.KeySetIterator extends AbstractIteratorDecorator
Inner class KeySetIterator.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancanRemoveWhether remove is allowed at presentprotected java.lang.ObjectlastKeyThe last returned keyprotected AbstractDualBidiMapparentThe parent map-
Fields inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
iterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeySetIterator(java.util.Iterator iterator, AbstractDualBidiMap parent)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectnext()voidremove()-
Methods inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
getIterator, hasNext
-
-
-
-
Field Detail
-
parent
protected final AbstractDualBidiMap parent
The parent map
-
lastKey
protected java.lang.Object lastKey
The last returned key
-
canRemove
protected boolean canRemove
Whether remove is allowed at present
-
-
Constructor Detail
-
KeySetIterator
protected KeySetIterator(java.util.Iterator iterator, AbstractDualBidiMap parent)Constructor.- Parameters:
iterator- the iterator to decorateparent- the parent map
-
-
Method Detail
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator- Overrides:
nextin classAbstractIteratorDecorator
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator- Overrides:
removein classAbstractIteratorDecorator
-
-