com.gargoylesoftware.htmlunit
Class KeyValuePair

java.lang.Object
  extended by org.apache.commons.httpclient.NameValuePair
      extended by com.gargoylesoftware.htmlunit.KeyValuePair
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
KeyDataPair

public class KeyValuePair
extends org.apache.commons.httpclient.NameValuePair

A container that holds a key and a value

Version:
$Revision: 1.3 $
Author:
Mike Bowler
See Also:
Serialized Form

Constructor Summary
KeyValuePair(java.lang.String key, java.lang.String value)
 Create an instance
 
Method Summary
 java.lang.String getKey()
 Return the key
 java.lang.String getValue()
 Return the value
 java.lang.String toString()
 Return a string representation of this object
 
Methods inherited from class org.apache.commons.httpclient.NameValuePair
equals, getName, hashCode, setName, setValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValuePair

public KeyValuePair(java.lang.String key,
                    java.lang.String value)
Create an instance

Parameters:
key - A key
value - a Value
Method Detail

getKey

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

Returns:
Return the key

getValue

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

Overrides:
getValue in class org.apache.commons.httpclient.NameValuePair
Returns:
Return the value

toString

public java.lang.String toString()
Return a string representation of this object

Overrides:
toString in class org.apache.commons.httpclient.NameValuePair
Returns:
a string representation of this object


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.