Class AbstractDualBidiMap.ValuesIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.AbstractIteratorDecorator
-
- org.apache.commons.collections.bidimap.AbstractDualBidiMap.ValuesIterator
-
- All Implemented Interfaces:
Iterator
- Enclosing class:
- AbstractDualBidiMap
protected static class AbstractDualBidiMap.ValuesIterator extends AbstractIteratorDecorator
Inner class ValuesIterator.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancanRemoveWhether remove is allowed at presentprotected ObjectlastValueThe last returned valueprotected AbstractDualBidiMapparentThe parent map-
Fields inherited from class org.apache.commons.collections.iterators.AbstractIteratorDecorator
iterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValuesIterator(Iterator iterator, AbstractDualBidiMap parent)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectnext()voidremove()-
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
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
parent
protected final AbstractDualBidiMap parent
The parent map
-
lastValue
protected Object lastValue
The last returned value
-
canRemove
protected boolean canRemove
Whether remove is allowed at present
-
-
Constructor Detail
-
ValuesIterator
protected ValuesIterator(Iterator iterator, AbstractDualBidiMap parent)
Constructor.- Parameters:
iterator- the iterator to decorateparent- the parent map
-
-
Method Detail
-
next
public Object next()
- Specified by:
nextin interfaceIterator- Overrides:
nextin classAbstractIteratorDecorator
-
remove
public void remove()
- Specified by:
removein interfaceIterator- Overrides:
removein classAbstractIteratorDecorator
-
-