Package org.apache.commons.collections
Class DoubleOrderedMap.DoubleOrderedMapIterator
java.lang.Object
org.apache.commons.collections.DoubleOrderedMap.DoubleOrderedMapIterator
- All Implemented Interfaces:
Iterator
- Enclosing class:
- DoubleOrderedMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
protected DoubleOrderedMap.Node
private DoubleOrderedMap.Node
-
Constructor Summary
Constructors -
Method Summary
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
-
expectedModifications
private int expectedModifications -
lastReturnedNode
-
nextNode
-
iteratorType
private int iteratorType
-
-
Constructor Details
-
DoubleOrderedMapIterator
DoubleOrderedMapIterator(int type) Constructor- Parameters:
type
-
-
-
Method Details
-
doGetNext
- Returns:
- 'next', whatever that means for a given kind of DoubleOrderedMapIterator
-
hasNext
public final boolean hasNext() -
next
- Specified by:
next
in interfaceIterator
- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException
- if iteration has no more elements.ConcurrentModificationException
- if the DoubleOrderedMap is modified behind the iterator's back
-
remove
Removes from the underlying collection the last element returned by the iterator. This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.- Specified by:
remove
in interfaceIterator
- Throws:
IllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.ConcurrentModificationException
- if the DoubleOrderedMap is modified behind the iterator's back
-