Class DoubleOrderedMap.DoubleOrderedMapIterator

java.lang.Object
org.apache.commons.collections.DoubleOrderedMap.DoubleOrderedMapIterator
All Implemented Interfaces:
Iterator
Enclosing class:
DoubleOrderedMap

private abstract class DoubleOrderedMap.DoubleOrderedMapIterator extends Object implements Iterator
  • Field Details

    • expectedModifications

      private int expectedModifications
    • lastReturnedNode

      protected DoubleOrderedMap.Node lastReturnedNode
    • nextNode

      private DoubleOrderedMap.Node nextNode
    • iteratorType

      private int iteratorType
  • Constructor Details

    • DoubleOrderedMapIterator

      DoubleOrderedMapIterator(int type)
      Constructor
      Parameters:
      type -
  • Method Details

    • doGetNext

      protected abstract Object doGetNext()
      Returns:
      'next', whatever that means for a given kind of DoubleOrderedMapIterator
    • hasNext

      public final boolean hasNext()
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if the iterator has more elements.
    • next

      Specified by:
      next in interface Iterator
      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

      public final void remove() throws IllegalStateException, ConcurrentModificationException
      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 interface Iterator
      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