|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.commons.httpclient.NameValuePair
A simple class encapsulating a name/value pair.
| Constructor Summary | |
NameValuePair()
Default constructor. |
|
NameValuePair(String name,
String value)
Constructor. |
|
| Method Summary | |
boolean |
equals(Object object)
Test if the given object is equal to me. |
String |
getName()
Return the name. |
String |
getValue()
Return the current value. |
int |
hashCode()
hashCode. |
void |
setName(String name)
Set the name. |
void |
setValue(String value)
Set the value. |
String |
toString()
Get a String representation of this pair. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public NameValuePair()
public NameValuePair(String name,
String value)
name - The name.value - The value.| Method Detail |
public void setName(String name)
name - The new namegetName()public String getName()
setName(String)public void setValue(String value)
value - The new value.public String getValue()
public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectobject - the Object to compare topublic int hashCode()
equals(b) then a.hashCode() == b.hashCode().hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||