talx x1.0.5

talx.util
Class StringValueMap.Pair

java.lang.Object
  extended bytalx.util.StringValueMap.Pair
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
StringValueMap

public static final class StringValueMap.Pair
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Holder class for key-value pairs.

See Also:
Serialized Form

Constructor Summary
StringValueMap.Pair(java.lang.String key, java.io.Serializable value)
          Creates the association between key and value.
 
Method Summary
 int compareTo(java.lang.Object o)
          Orders pairs according to the String ordering of their keys.
 java.lang.String getKey()
          Returns the key supplied in the constructor.
 java.io.Serializable getValue()
          Returns the value supplied in the constructor.
 java.lang.String toString()
          Highly verbose string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringValueMap.Pair

public StringValueMap.Pair(java.lang.String key,
                           java.io.Serializable value)
Creates the association between key and value.

Method Detail

getKey

public java.lang.String getKey()
Returns the key supplied in the constructor.


getValue

public java.io.Serializable getValue()
Returns the value supplied in the constructor.


compareTo

public int compareTo(java.lang.Object o)
Orders pairs according to the String ordering of their keys.

Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Highly verbose string representation. This method is used by the StringValueMap.toString method to create machine parseable string representations of the string value map that can be reconstructed by the StringValueMap.fromString method. The strings returned are machine parsable and highly human-unreadable.


talx x1.0.5

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