Class DoubleIntegerMinHeap.UnsortedIter

  • All Implemented Interfaces:
    DoubleIntegerHeap.UnsortedIter, Iter
    Enclosing class:

    private class DoubleIntegerMinHeap.UnsortedIter
    extends java.lang.Object
    implements DoubleIntegerHeap.UnsortedIter
    Unsorted iterator - in heap order. Does not poll the heap.

    Use this class as follows:

     for (DoubleIntegerHeap.UnsortedIter iter = heap.unsortedIter(); iter.valid(); {
    Erich Schubert
    • Field Summary

      Modifier and Type Field Description
      protected int pos
      Iterator position.
    • Constructor Summary

      Modifier Constructor Description
      private UnsortedIter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DoubleIntegerMinHeap.UnsortedIter advance()
      Moves the iterator forward to the next entry.
      double getKey()
      Get the current key.
      int getValue()
      Get the current value.
      boolean valid()
      Returns true if the iterator currently points to a valid object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait