protected static class AbstractMapMultiSet.UniqueSetIterator<E> extends AbstractIteratorDecorator<E>
Modifier and Type | Field | 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 | Description |
---|---|---|
protected |
UniqueSetIterator(java.util.Iterator<E> iterator,
AbstractMapMultiSet<E> parent) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
E |
next() |
|
void |
remove() |
getIterator, hasNext
protected final AbstractMapMultiSet<E> parent
protected E lastElement
protected boolean canRemove
protected UniqueSetIterator(java.util.Iterator<E> iterator, AbstractMapMultiSet<E> parent)
iterator
- the iterator to decorateparent
- the parent multisetpublic E next()
AbstractIteratorDecorator
next
in class AbstractIteratorDecorator<E>
public void remove()
remove
in class AbstractUntypedIteratorDecorator<E,E>
Copyright © 2001-2019 - Apache Software Foundation