org.apache.commons.collections.bidimap
Class AbstractDualBidiMap.KeySetIterator<K,V>

java.lang.Object
  extended by org.apache.commons.collections.iterators.AbstractIteratorDecorator<K>
      extended by 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.


Field Summary
protected  boolean canRemove
          Whether remove is allowed at present
protected  K lastKey
          The last returned key
protected  AbstractDualBidiMap<K,V> parent
          The parent map
 
Fields inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
iterator
 
Constructor Summary
protected AbstractDualBidiMap.KeySetIterator(Iterator<K> iterator, AbstractDualBidiMap<K,V> parent)
          Constructor.
 
Method Summary
 K next()
           
 void remove()
           
 
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
 

Field Detail

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

Constructor Detail

AbstractDualBidiMap.KeySetIterator

protected AbstractDualBidiMap.KeySetIterator(Iterator<K> iterator,
                                             AbstractDualBidiMap<K,V> parent)
Constructor.

Parameters:
iterator - the iterator to decorate
parent - the parent map
Method Detail

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.