com.gargoylesoftware.htmlunit
Class KeyValuePair

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

public class KeyValuePair
extends NameValuePair

A container that holds a key and a value

Version:
$Revision: 2132 $
Author:
Mike Bowler, Ahmed Ashour
See Also:
Serialized Form

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

Constructor Detail

KeyValuePair

public KeyValuePair(String key,
                    String value)
Create an instance

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

getKey

public String getKey()
Return the key

Returns:
Return the key

toString

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

Overrides:
toString in class NameValuePair
Returns:
a string representation of this object


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.