Package com.ibm.wala.util.collections
Class Heap<T>
java.lang.Object
com.ibm.wala.util.collections.Heap<T>
- Direct Known Subclasses:
TabulationSolver.Worklist
,Worklist
Simple Heap data structure.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Heap
public Heap(int initialCapacity)
-
-
Method Details
-
compareElements
- Returns:
- true iff elt1 is considered < elt2
-
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
-