cz.cuni.amis.utils.heap
Class HeapIterator<NODE>

Package class diagram package HeapIterator
java.lang.Object
  extended by cz.cuni.amis.utils.heap.HeapIterator<NODE>
All Implemented Interfaces:
Iterator<NODE>

public class HeapIterator<NODE>
extends Object
implements Iterator<NODE>

Iterator used by Heap inside Heap.iterator().


Constructor Summary
HeapIterator(NODE[] myNodes, int myItems, Heap<NODE> myHeap)
           
 
Method Summary
 boolean hasNext()
           
 NODE next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapIterator

public HeapIterator(NODE[] myNodes,
                    int myItems,
                    Heap<NODE> myHeap)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<NODE>

next

public NODE next()
Specified by:
next in interface Iterator<NODE>

remove

public void remove()
Specified by:
remove in interface Iterator<NODE>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.