Class AbstractDualBidiMap.KeySetIterator<K>
- java.lang.Object
-
- org.apache.openjpa.lib.util.collections.AbstractUntypedIteratorDecorator<E,E>
-
- org.apache.openjpa.lib.util.collections.AbstractIteratorDecorator<K>
-
- org.apache.openjpa.lib.util.collections.AbstractDualBidiMap.KeySetIterator<K>
-
- All Implemented Interfaces:
java.util.Iterator<K>
- Enclosing class:
- AbstractDualBidiMap<K,V>
protected static class AbstractDualBidiMap.KeySetIterator<K> extends AbstractIteratorDecorator<K>
Inner class KeySetIterator.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KeySetIterator(java.util.Iterator<K> iterator, AbstractDualBidiMap<K,?> parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
next()
void
remove()
-
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractUntypedIteratorDecorator
getIterator, hasNext
-
-
-
-
Field Detail
-
parent
protected final AbstractDualBidiMap<K,?> parent
The parent map
-
lastKey
protected K lastKey
The last returned key
-
canRemove
protected boolean canRemove
Whether remove is allowed at present
-
-
Constructor Detail
-
KeySetIterator
protected KeySetIterator(java.util.Iterator<K> iterator, AbstractDualBidiMap<K,?> parent)
Constructor.- Parameters:
iterator
- the iterator to decorateparent
- the parent map
-
-
Method Detail
-
next
public K next()
Description copied from class:AbstractIteratorDecorator
- Specified by:
next
in interfacejava.util.Iterator<K>
- Overrides:
next
in classAbstractIteratorDecorator<K>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<K>
- Overrides:
remove
in classAbstractUntypedIteratorDecorator<K,K>
-
-