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

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

protected static class AbstractDualBidiMap.ValuesIterator<K,V>
extends AbstractIteratorDecorator<V>

Inner class ValuesIterator.


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


lastValue

protected V lastValue
The last returned value


canRemove

protected boolean canRemove
Whether remove is allowed at present

Constructor Detail

AbstractDualBidiMap.ValuesIterator

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

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

next

public V next()
Specified by:
next in interface Iterator<V>
Overrides:
next in class AbstractIteratorDecorator<V>

remove

public void remove()
Specified by:
remove in interface Iterator<V>
Overrides:
remove in class AbstractIteratorDecorator<V>


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