com.xebialabs.deployit.ci.mapping
Class KeyValuePair

java.lang.Object
  extended by com.xebialabs.deployit.ci.mapping.KeyValuePair
All Implemented Interfaces:
java.io.Serializable

public class KeyValuePair
extends java.lang.Object
implements java.io.Serializable

A key/value pair.

See Also:
Serialized Form

Constructor Summary
KeyValuePair()
          Creates an empty key/value pair.
KeyValuePair(java.lang.String key, java.lang.String value)
          Creates a key/value pair with the specified key and value.
 
Method Summary
 java.lang.String getKey()
          Gets the key
 java.lang.String getValue()
          Gets the value
 void setKey(java.lang.String key)
          Sets the key
 void setValue(java.lang.String value)
          Sets the value
static java.util.Map<java.lang.String,java.lang.String> toMap(java.util.List<KeyValuePair> keyValuePairs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValuePair

public KeyValuePair()
Creates an empty key/value pair.


KeyValuePair

public KeyValuePair(java.lang.String key,
                    java.lang.String value)
Creates a key/value pair with the specified key and value.

Parameters:
key - the key
value - the value
Method Detail

getKey

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

Returns:
the key

setKey

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

Parameters:
key - the key to set

getValue

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

Returns:
the value

setValue

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

Parameters:
value - the value to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMap

public static java.util.Map<java.lang.String,java.lang.String> toMap(java.util.List<KeyValuePair> keyValuePairs)


Copyright © 2010. All Rights Reserved.