org.apache.commons.collections.bidimap

Class AbstractDualBidiMap.KeySetIterator

Enclosing Class:
AbstractDualBidiMap
Implemented Interfaces:
Iterator

protected static class AbstractDualBidiMap.KeySetIterator
extends AbstractIteratorDecorator

Inner class KeySetIterator.

Field Summary

protected boolean
canRemove
Whether remove is allowed at present
protected Object
lastKey
The last returned key
protected AbstractDualBidiMap
parent
The parent map

Fields inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator

iterator

Constructor Summary

KeySetIterator(Iterator iterator, AbstractDualBidiMap parent)
Constructor.

Method Summary

Object
next()
void
remove()

Methods inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator

getIterator, hasNext, next, remove

Field Details

canRemove

protected boolean canRemove
Whether remove is allowed at present


lastKey

protected Object lastKey
The last returned key


parent

protected final AbstractDualBidiMap parent
The parent map

Constructor Details

KeySetIterator

protected KeySetIterator(Iterator iterator,
                         AbstractDualBidiMap parent)
Constructor.

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

Method Details

next

public Object next()
Overrides:
next in interface AbstractIteratorDecorator


remove

public void remove()
Overrides:
remove in interface AbstractIteratorDecorator


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.