private static class AbstractMultiSet.MultiSetIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
private boolean |
canRemove |
private MultiSet.Entry<E> |
current |
private java.util.Iterator<MultiSet.Entry<E>> |
entryIterator |
private int |
itemCount |
private AbstractMultiSet<E> |
parent |
Constructor and Description |
---|
MultiSetIterator(AbstractMultiSet<E> parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
private final AbstractMultiSet<E> parent
private final java.util.Iterator<MultiSet.Entry<E>> entryIterator
private MultiSet.Entry<E> current
private int itemCount
private boolean canRemove
public MultiSetIterator(AbstractMultiSet<E> parent)
parent
- the parent multiset