Package org.jheaps.tree
Class ReflectedPairingHeap.Factory<K,V>
- java.lang.Object
-
- org.jheaps.tree.ReflectedPairingHeap.Factory<K,V>
-
- All Implemented Interfaces:
AddressableHeapFactory<K,V>
- Enclosing class:
- ReflectedPairingHeap<K,V>
private static class ReflectedPairingHeap.Factory<K,V> extends java.lang.Object implements AddressableHeapFactory<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressableHeap<K,V>
get(java.util.Comparator<? super K> comparator)
Get a new heap.
-
-
-
Method Detail
-
get
public AddressableHeap<K,V> get(java.util.Comparator<? super K> comparator)
Description copied from interface:AddressableHeapFactory
Get a new heap.- Specified by:
get
in interfaceAddressableHeapFactory<K,V>
- 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
-
-