net.aerith.misao.util
Class KeyAndValue

java.lang.Object
  |
  +--net.aerith.misao.util.KeyAndValue

public class KeyAndValue
extends java.lang.Object

The KeyAndValue represents a set of a key and the value.


Field Summary
private  java.lang.String key
          The key.
private  java.lang.String value
          The value.
 
Constructor Summary
KeyAndValue(java.lang.String initial_key, java.lang.String initial_value)
          Constructs a KeyAndValue of the specified key and value.
 
Method Summary
 java.lang.String getKey()
          Gets the key.
 java.lang.String getValue()
          Gets the value.
protected  java.lang.String paramString()
          Returns a raw string representation of the state of this object, for debugging use.
 java.lang.String toString()
          Returns a string representation of the state of this object, for debugging use.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

key

private java.lang.String key
The key.

value

private java.lang.String value
The value.
Constructor Detail

KeyAndValue

public KeyAndValue(java.lang.String initial_key,
                   java.lang.String initial_value)
Constructs a KeyAndValue of the specified key and value.
Parameters:
initial_key - the key.
initial_value - the value.
Method Detail

getKey

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

getValue

public java.lang.String getValue()
Gets the value.
Returns:
the value.

paramString

protected java.lang.String paramString()
Returns a raw string representation of the state of this object, for debugging use. It should be invoked from toString method of the subclasses.
Returns:
a string representation of the state of this object.

toString

public java.lang.String toString()
Returns a string representation of the state of this object, for debugging use.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the state of this object.