Example usage for Java org.apache.commons.collections BinaryHeap fields, constructors, methods, implement or subclass
The text is from its open source code.
BinaryHeap() Constructs a new minimum binary heap. | |
BinaryHeap(Comparator comparator) Constructs a new BinaryHeap that will use the given comparator to order its elements. | |
BinaryHeap(int capacity) Constructs a new minimum binary heap with the specified initial capacity. | |
BinaryHeap(boolean isMinHeap) Constructs a new minimum or maximum binary heap |
boolean | add(Object object) Adds an object to this heap. |
void | insert(Object element) Inserts an element into queue. |
Object | pop() Returns the element on top of heap and remove it. |
Object | remove() Removes the priority element. |
boolean | remove(Object o) |
int | size() Returns the number of elements in this heap. |