com.orderlysoftware.orderlycalls.base
Class Pair

java.lang.Object
  extended by com.orderlysoftware.orderlycalls.base.Pair

public class Pair
extends java.lang.Object

This class represents a single key-value pair.

Author:
Matt King, M.A. Oxon.

Constructor Summary
Pair(java.lang.String input)
          Parses the input String and creates a new Pair.
Pair(java.lang.String key, java.lang.String value)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(java.lang.String key,
            java.lang.String value)
Constructor.

Parameters:
key -
value -

Pair

public Pair(java.lang.String input)
Parses the input String and creates a new Pair.

The input string must be of format "key: value"

Parameters:
input - The String to parse.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"key: value"