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
- All Known Implementing Classes:
ReflectedFibonacciHeap.Factory
,ReflectedPairingHeap.Factory
public interface AddressableHeapFactory<K,V>
An addressable heap factory.
-
Method Summary
-
Method Details
-
get
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
-