net.datastructures
Class HeapPriorityQueue.MyEntry<K,V>
java.lang.Object
net.datastructures.HeapPriorityQueue.MyEntry<K,V>
- All Implemented Interfaces:
- Entry<K,V>
- Direct Known Subclasses:
- HeapAdaptablePriorityQueue.LocationAwareEntry
- Enclosing class:
- HeapPriorityQueue<K,V>
protected static class HeapPriorityQueue.MyEntry<K,V>
- extends Object
- implements Entry<K,V>
Inner class for heap entries.
key
protected K key
value
protected V value
HeapPriorityQueue.MyEntry
public HeapPriorityQueue.MyEntry(K k,
V v)
getKey
public K getKey()
- Description copied from interface:
Entry
- Returns the key stored in this entry.
- Specified by:
getKey
in interface Entry<K,V>
getValue
public V getValue()
- Description copied from interface:
Entry
- Returns the value stored in this entry.
- Specified by:
getValue
in interface Entry<K,V>
toString
public String toString()
- Overrides:
toString
in class Object