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