datastructures

net.datastructures
Class HeapPriorityQueue.MyEntry

java.lang.Object
  extended bynet.datastructures.HeapPriorityQueue.MyEntry
All Implemented Interfaces:
Entry
Direct Known Subclasses:
HeapAdaptablePriorityQueue.LocationAwareEntry
Enclosing class:
HeapPriorityQueue

protected static class HeapPriorityQueue.MyEntry
extends Object
implements Entry

Inner class for heap entries.


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

Field Detail

key

protected Object key

value

protected Object value
Constructor Detail

HeapPriorityQueue.MyEntry

public HeapPriorityQueue.MyEntry(Object k,
                                 Object v)
Method Detail

key

public Object key()
Description copied from interface: Entry
Returns the key stored in this entry.

Specified by:
key in interface Entry

value

public Object value()
Description copied from interface: Entry
Returns the value stored in this entry.

Specified by:
value in interface Entry

toString

public String toString()

datastructures