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

java.lang.Object
  extended by org.apache.commons.collections.iterators.AbstractIteratorDecorator<Map.Entry<K,V>>
      extended by org.apache.commons.collections.bidimap.AbstractDualBidiMap.EntrySetIterator<K,V>
All Implemented Interfaces:
Iterator<Map.Entry<K,V>>
Enclosing class:
AbstractDualBidiMap<K,V>

protected static class AbstractDualBidiMap.EntrySetIterator<K,V>
extends AbstractIteratorDecorator<Map.Entry<K,V>>

Inner class EntrySetIterator.


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


last

protected Map.Entry<K,V> last
The last returned entry


canRemove

protected boolean canRemove
Whether remove is allowed at present

Constructor Detail

AbstractDualBidiMap.EntrySetIterator

protected AbstractDualBidiMap.EntrySetIterator(Iterator<Map.Entry<K,V>> iterator,
                                               AbstractDualBidiMap<K,V> parent)
Constructor.

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

next

public Map.Entry<K,V> next()
Specified by:
next in interface Iterator<Map.Entry<K,V>>
Overrides:
next in class AbstractIteratorDecorator<Map.Entry<K,V>>

remove

public void remove()
Specified by:
remove in interface Iterator<Map.Entry<K,V>>
Overrides:
remove in class AbstractIteratorDecorator<Map.Entry<K,V>>


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.