desktop
Class TrainingPanel.KeyValue
java.lang.Object
desktop.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TrainingPanel.KeyValue
public TrainingPanel.KeyValue(java.lang.String key,
java.lang.String value)
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()
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.