public class IntDoubleBinaryHeap extends Object implements BinHeapWrapper<Number,Integer>
The library can be found here: https://commons.apache.org/proper/commons-collections/
| Constructor and Description |
|---|
IntDoubleBinaryHeap() |
IntDoubleBinaryHeap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
ensureCapacity(int capacity) |
long |
getCapacity() |
int |
getSize() |
void |
insert_(double key,
int element) |
void |
insert(Number key,
Integer element) |
boolean |
isEmpty() |
int |
peek_element() |
float |
peek_key() |
Integer |
peekElement() |
Number |
peekKey() |
int |
poll_element() |
Integer |
pollElement() |
void |
update_(double key,
int element) |
void |
update(Number key,
Integer element) |
public IntDoubleBinaryHeap()
public IntDoubleBinaryHeap(int initialCapacity)
public void update(Number key, Integer element)
update in interface BinHeapWrapper<Number,Integer>public void update_(double key,
int element)
public void insert(Number key, Integer element)
insert in interface BinHeapWrapper<Number,Integer>public void insert_(double key,
int element)
public Integer peekElement()
peekElement in interface BinHeapWrapper<Number,Integer>public int peek_element()
public Number peekKey()
peekKey in interface BinHeapWrapper<Number,Integer>public float peek_key()
public Integer pollElement()
pollElement in interface BinHeapWrapper<Number,Integer>public int poll_element()
public boolean isEmpty()
isEmpty in interface BinHeapWrapper<Number,Integer>public int getSize()
getSize in interface BinHeapWrapper<Number,Integer>public void clear()
clear in interface BinHeapWrapper<Number,Integer>public void ensureCapacity(int capacity)
ensureCapacity in interface BinHeapWrapper<Number,Integer>public long getCapacity()
Copyright © 2012–2020. All rights reserved.