Package org.jheaps

Interface DoubleEndedAddressableHeap.Handle<K,​V>

  • Type Parameters:
    K - the type of keys maintained by this heap
    V - the type of values maintained by this heap
    All Superinterfaces:
    AddressableHeap.Handle<K,​V>
    Enclosing interface:
    DoubleEndedAddressableHeap<K,​V>

    public static interface DoubleEndedAddressableHeap.Handle<K,​V>
    extends AddressableHeap.Handle<K,​V>
    A double-ended heap element handle. Allows someone to address an element already in a heap and perform additional operations.
    • Method Detail

      • increaseKey

        void increaseKey​(K newKey)
        Increase the key of the element.
        Parameters:
        newKey - the new key
        Throws:
        IllegalArgumentException - if the new key is smaller than the old key according to the comparator used when constructing the heap or the natural ordering of the elements if no comparator was used