protected static class AbstractMapMultiSet.UniqueSetIterator<E> extends AbstractIteratorDecorator<E>
Modifier and Type | Field and Description |
---|---|
protected boolean |
canRemove
Whether remove is allowed at present
|
protected E |
lastElement
The last returned element
|
protected AbstractMapMultiSet<E> |
parent
The parent multiset
|
Modifier | Constructor and Description |
---|---|
protected |
UniqueSetIterator(Iterator<E> iterator,
AbstractMapMultiSet<E> parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
E |
next() |
void |
remove() |
getIterator, hasNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final AbstractMapMultiSet<E> parent
protected E lastElement
protected boolean canRemove
protected UniqueSetIterator(Iterator<E> iterator, AbstractMapMultiSet<E> parent)
iterator
- the iterator to decorateparent
- the parent multisetpublic E next()
AbstractIteratorDecorator
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.