Interface IntegerHeap.UnsortedIter

  • All Superinterfaces:
    Iter
    All Known Implementing Classes:
    IntegerMaxHeap.UnsortedIter, IntegerMinHeap.UnsortedIter
    Enclosing interface:
    IntegerHeap

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

      • get

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