edu.gwu.algtest
Class ComparableKeyValuePair

java.lang.Object
  |
  +--edu.gwu.algtest.ComparableKeyValuePair

public class ComparableKeyValuePair
extends java.lang.Object

Class ComparableKeyValuePair simply stores a key and a corresponding value for use in search algorithms. The key is assumed to implement the Comparable interface.


Field Summary
 java.lang.Comparable key
           
 java.lang.Object value
           
 
Constructor Summary
ComparableKeyValuePair()
           
ComparableKeyValuePair(java.lang.Comparable key, java.lang.Object value)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public java.lang.Comparable key

value

public java.lang.Object value
Constructor Detail

ComparableKeyValuePair

public ComparableKeyValuePair()

ComparableKeyValuePair

public ComparableKeyValuePair(java.lang.Comparable key,
                              java.lang.Object value)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object