static final class Multisets.MultisetIteratorImpl<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
private boolean |
canRemove |
private Multiset.Entry<E> |
currentEntry |
private java.util.Iterator<Multiset.Entry<E>> |
entryIterator |
private int |
laterCount
Count of subsequent elements equal to current element
|
private Multiset<E> |
multiset |
private int |
totalCount
Count of all elements equal to current element
|
Constructor and Description |
---|
MultisetIteratorImpl(Multiset<E> multiset,
java.util.Iterator<Multiset.Entry<E>> entryIterator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
private final java.util.Iterator<Multiset.Entry<E>> entryIterator
private Multiset.Entry<E> currentEntry
private int laterCount
private int totalCount
private boolean canRemove
MultisetIteratorImpl(Multiset<E> multiset, java.util.Iterator<Multiset.Entry<E>> entryIterator)