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 |
EntrySetIterator(Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> iterator,
AbstractMapMultiSet<E> parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
MultiSet.Entry<E> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final AbstractMapMultiSet<E> parent
protected final Iterator<Map.Entry<E,AbstractMapMultiSet.MutableInteger>> decorated
protected MultiSet.Entry<E> last
protected boolean canRemove
protected 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–2018 The Apache Software Foundation. All rights reserved.