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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddressableHeap<K,V>
get(java.util.Comparator<? super K> comparator)
Get a new heap.
-
-
-
Method Detail
-
get
AddressableHeap<K,V> get(java.util.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
-
-