net.datastructures - version 5.0

net.datastructures
Class HeapPriorityQueue.MyEntry<K,V>

java.lang.Object
  extended by 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.


Field Summary
protected  K key
           
protected  V value
           
 
Constructor Summary
HeapPriorityQueue.MyEntry(K k, V v)
           
 
Method Summary
 K getKey()
          Returns the key stored in this entry.
 V getValue()
          Returns the value stored in this entry.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected K key

value

protected V value
Constructor Detail

HeapPriorityQueue.MyEntry

public HeapPriorityQueue.MyEntry(K k,
                                 V v)
Method Detail

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

net.datastructures - version 5.0