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

    public interface AddressableHeapFactory<K,​V>
    An addressable heap factory.
    Author:
    Dimitrios Michail
    • 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. If null, the natural ordering of the keys will be used.
        Returns:
        a new heap