Class AbstractMapMultiSet.UniqueSetIterator<E>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator<E,E>
org.apache.commons.collections4.iterators.AbstractIteratorDecorator<E>
org.apache.commons.collections4.multiset.AbstractMapMultiSet.UniqueSetIterator<E>
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
- AbstractMapMultiSet<E>
protected static class AbstractMapMultiSet.UniqueSetIterator<E>
extends AbstractIteratorDecorator<E>
Inner class UniqueSetIterator.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether remove is allowed at presentprotected E
The last returned elementprotected final AbstractMapMultiSet<E>
The parent multiset -
Constructor Summary
ModifierConstructorDescriptionprotected
UniqueSetIterator
(Iterator<E> iterator, AbstractMapMultiSet<E> parent) Constructs a new instance. -
Method Summary
Methods inherited from class org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator
getIterator, hasNext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
parent
The parent multiset -
lastElement
The last returned element -
canRemove
Whether remove is allowed at present
-
-
Constructor Details
-
UniqueSetIterator
Constructs a new instance.- Parameters:
iterator
- the iterator to decorateparent
- the parent multiset
-
-
Method Details
-
next
Description copied from class:AbstractIteratorDecorator
-
remove
-