Class Heap<T>
java.lang.Object
com.ibm.wala.util.collections.Heap<T>
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Heap
public Heap(int initialCapacity)
-
-
Method Details
-
compareElements
-
size
public int size()- Returns:
- number of elements in this heap
-
isEmpty
public final boolean isEmpty()- Returns:
- true iff this heap is non-empty
-
insert
-
take
- Returns:
- the first object in the priority queue
- Throws:
NoSuchElementException
-
toString
-