kiurubeans
Class StringPair

java.lang.Object
  |
  +--kiurubeans.StringPair

public class StringPair
extends java.lang.Object

Encapsulates orderer pair of two strings.


Constructor Summary
StringPair()
          Creates a new instance of StringPair
StringPair(java.lang.String key)
          Constructor with key.
StringPair(java.lang.String key, java.lang.String desc)
          Constructor with two parameters: key and value.
 
Method Summary
 java.lang.String getKey()
          Returns the key
 java.lang.String getValue()
          Returns the value of StringPair
 void setKey(java.lang.String s)
          Sets the key of the stringpair
 void setValue(java.lang.String s)
          Sets the value of the stringPair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPair

public StringPair()
Creates a new instance of StringPair


StringPair

public StringPair(java.lang.String key)
Constructor with key. value remains null.

Parameters:
key - String key

StringPair

public StringPair(java.lang.String key,
                  java.lang.String desc)
Constructor with two parameters: key and value.

Parameters:
key - Key
desc - Value
Method Detail

setKey

public void setKey(java.lang.String s)
Sets the key of the stringpair

Parameters:
s - New key

setValue

public void setValue(java.lang.String s)
Sets the value of the stringPair

Parameters:
s - New value

getKey

public java.lang.String getKey()
Returns the key

Returns:
key

getValue

public java.lang.String getValue()
Returns the value of StringPair

Returns:
Value