org.apache.commons.collections.bidimap
Class AbstractDualBidiMap.KeySetIterator<K,V>
java.lang.Object
org.apache.commons.collections.iterators.AbstractIteratorDecorator<K>
org.apache.commons.collections.bidimap.AbstractDualBidiMap.KeySetIterator<K,V>
- All Implemented Interfaces:
- Iterator<K>
- Enclosing class:
- AbstractDualBidiMap<K,V>
protected static class AbstractDualBidiMap.KeySetIterator<K,V>
- extends AbstractIteratorDecorator<K>
Inner class KeySetIterator.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected final AbstractDualBidiMap<K,V> parent
- The parent map
lastKey
protected K lastKey
- The last returned key
canRemove
protected boolean canRemove
- Whether remove is allowed at present
AbstractDualBidiMap.KeySetIterator
protected AbstractDualBidiMap.KeySetIterator(Iterator<K> iterator,
AbstractDualBidiMap<K,V> parent)
- Constructor.
- Parameters:
iterator
- the iterator to decorateparent
- the parent map
next
public K next()
- Specified by:
next
in interface Iterator<K>
- Overrides:
next
in class AbstractIteratorDecorator<K>
remove
public void remove()
- Specified by:
remove
in interface Iterator<K>
- Overrides:
remove
in class AbstractIteratorDecorator<K>
Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.