ptolemy.actor.ptalon.lib
Class KeyValuePair

java.lang.Object
  extended by ptolemy.actor.ptalon.lib.KeyValuePair

public class KeyValuePair
extends java.lang.Object

A pair of Strings, one a key, and one a value.

Since:
Ptolemy II 6.1
Version:
$Id: KeyValuePair.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Adam Cataldo
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
private  java.lang.String _key
          The key.
private  java.lang.String _value
          The value.
 
Constructor Summary
KeyValuePair(java.lang.String key, java.lang.String value)
          Create a new KeyValuePair with the given key and value.
 
Method Summary
 java.lang.String getKey()
          The key of this KeyValuePair.
 java.lang.String getValue()
          The value of this KeyValuePair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_key

private java.lang.String _key
The key.


_value

private java.lang.String _value
The value.

Constructor Detail

KeyValuePair

public KeyValuePair(java.lang.String key,
                    java.lang.String value)
Create a new KeyValuePair with the given key and value.

Parameters:
key - The key.
value - The value.
Method Detail

getKey

public java.lang.String getKey()
The key of this KeyValuePair.

Returns:
The key of this KeyValuePair.

getValue

public java.lang.String getValue()
The value of this KeyValuePair.

Returns:
The value of this KeyValuePair.