Java org.apache.commons.collections BinaryHeap fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections BinaryHeap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections BinaryHeap.

The text is from its open source code.

Constructor

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

Method

booleanadd(Object object)
Adds an object to this heap.
voidinsert(Object element)
Inserts an element into queue.
Objectpop()
Returns the element on top of heap and remove it.
Objectremove()
Removes the priority element.
booleanremove(Object o)
intsize()
Returns the number of elements in this heap.