Class AbstractMapBag.BagIterator
- java.lang.Object
-
- org.apache.commons.collections.bag.AbstractMapBag.BagIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Enclosing class:
- AbstractMapBag
static class AbstractMapBag.BagIterator extends java.lang.Object implements java.util.IteratorInner class iterator for the Bag.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancanRemoveprivate java.util.Map.Entrycurrentprivate java.util.IteratorentryIteratorprivate intitemCountprivate intmodsprivate AbstractMapBagparent
-
Constructor Summary
Constructors Constructor Description BagIterator(AbstractMapBag parent)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()voidremove()
-
-
-
Field Detail
-
parent
private AbstractMapBag parent
-
entryIterator
private java.util.Iterator entryIterator
-
current
private java.util.Map.Entry current
-
itemCount
private int itemCount
-
mods
private final int mods
-
canRemove
private boolean canRemove
-
-
Constructor Detail
-
BagIterator
public BagIterator(AbstractMapBag parent)
Constructor.- Parameters:
parent- the parent bag
-
-