Package org.jheaps
Interface AddressableHeapFactory<K,V>
-
- Type Parameters:
K
- the type of keys maintained by the heapV
- the type of values maintained by the heap
public interface AddressableHeapFactory<K,V>
An addressable heap factory.- Author:
- Dimitrios Michail
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddressableHeap<K,V>
get(Comparator<? super K> comparator)
Get a new heap.
-
-
-
Method Detail
-
get
AddressableHeap<K,V> get(Comparator<? super K> comparator)
Get a new heap.- Parameters:
comparator
- the comparator that will be used to order this heap. Ifnull
, the natural ordering of the keys will be used.- Returns:
- a new heap
-
-