org.apache.commons.collections.bidimap
Class AbstractDualBidiMap.ValuesIterator<K,V>
java.lang.Object
org.apache.commons.collections.iterators.AbstractIteratorDecorator<V>
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.
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
lastValue
protected V lastValue
- The last returned value
canRemove
protected boolean canRemove
- Whether remove is allowed at present
AbstractDualBidiMap.ValuesIterator
protected AbstractDualBidiMap.ValuesIterator(Iterator<V> iterator,
AbstractDualBidiMap<K,V> parent)
- Constructor.
- Parameters:
iterator
- the iterator to decorateparent
- the parent map
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.