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>
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
increaseKey(K newKey)
Increase the key of the element.-
Methods inherited from interface org.jheaps.AddressableHeap.Handle
decreaseKey, delete, getKey, getValue, setValue
-
-
-
-
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
-
-