Package org.jheaps

Interface AddressableHeapFactory<K,V>

Type Parameters:
K - the type of keys maintained by the heap
V - 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

    Modifier and Type
    Method
    Description
    get(Comparator<? super K> comparator)
    Get a new heap.
  • Method Details

    • 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. If null, the natural ordering of the keys will be used.
      Returns:
      a new heap