talx x1.0.5

desktop
Class TrainingPanel.KeyValue

java.lang.Object
  extended bydesktop.TrainingPanel.KeyValue
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
TrainingPanel

public static class TrainingPanel.KeyValue
extends java.lang.Object
implements java.lang.Comparable

Holds a key value pair. Note: this class has a natural ordering that is inconsistent with equals. The natural ordering of this class is the natural ordering of the keys. Thus, two KeyValues with the same key but different values will be equal according to the compareTo method, but not the equals method.


Constructor Summary
TrainingPanel.KeyValue(java.lang.String key, java.lang.String value)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getKey()
           
 java.lang.String getValue()
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrainingPanel.KeyValue

public TrainingPanel.KeyValue(java.lang.String key,
                              java.lang.String value)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getKey

public java.lang.String getKey()

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

toString

public java.lang.String toString()

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.