net.datastructures - version 5.0

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

java.lang.Object
  extended by net.datastructures.SortedListPriorityQueue.MyEntry<K,V>
All Implemented Interfaces:
Entry<K,V>
Direct Known Subclasses:
SortedListAdaptablePriorityQueue.LocationAwareEntry
Enclosing class:
SortedListPriorityQueue<K,V>

protected static class SortedListPriorityQueue.MyEntry<K,V>
extends Object
implements Entry<K,V>

Inner class for entries


Field Summary
protected  K k
           
protected  V v
           
 
Constructor Summary
SortedListPriorityQueue.MyEntry(K key, V value)
           
 
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

k

protected K k

v

protected V v
Constructor Detail

SortedListPriorityQueue.MyEntry

public SortedListPriorityQueue.MyEntry(K key,
                                       V value)
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