protected static class AbstractMapMultiSet.EntrySetIterator<E> extends Object implements Iterator<MultiSet.Entry<E>>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canRemove
Whether remove is allowed at present
|
protected Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> |
decorated |
protected MultiSet.Entry<E> |
last
The last returned entry
|
protected AbstractMapMultiSet<E> |
parent
The parent map
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMapMultiSet.EntrySetIterator(Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> iterator,
AbstractMapMultiSet<E> parent)
Constructor.
|
protected final AbstractMapMultiSet<E> parent
protected final Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> decorated
protected MultiSet.Entry<E> last
protected boolean canRemove
protected AbstractMapMultiSet.EntrySetIterator(Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> iterator, AbstractMapMultiSet<E> parent)
iterator - the iterator to decorateparent - the parent multisetpublic boolean hasNext()
hasNext in interface Iterator<MultiSet.Entry<E>>public MultiSet.Entry<E> next()
next in interface Iterator<MultiSet.Entry<E>>public void remove()
remove in interface Iterator<MultiSet.Entry<E>>Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.