Package org.jheaps
Interface DoubleEndedAddressableHeap.Handle<K,V>
- Type Parameters:
K
- the type of keys maintained by this heapV
- the type of values maintained by this heap
- All Superinterfaces:
AddressableHeap.Handle<K,
V>
- All Known Implementing Classes:
ReflectedHeap.ReflectedHandle
- Enclosing interface:
DoubleEndedAddressableHeap<K,
V>
A double-ended heap element handle. Allows someone to address an element
already in a heap and perform additional operations.
-
Method Summary
Methods inherited from interface org.jheaps.AddressableHeap.Handle
decreaseKey, delete, getKey, getValue, setValue
-
Method Details
-
increaseKey
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
-