Interface DoubleHeap.UnsortedIter

  • All Superinterfaces:
    Iter
    All Known Implementing Classes:
    DoubleMaxHeap.UnsortedIter, DoubleMinHeap.UnsortedIter
    Enclosing interface:
    DoubleHeap

    public static interface DoubleHeap.UnsortedIter
    extends Iter
    Unsorted iterator - in heap order. Does not poll the heap.
     
     for (DoubleHeap.UnsortedIter iter = heap.unsortedIter(); iter.valid(); iter.next()) {
       doSomething(iter.get());
     }
     
     
    Author:
    Erich Schubert
    • Method Detail

      • get

        double get()
        Get the iterators current object.
        Returns:
        Current object