Package org.htmlunit.util
Class NameValuePair
- java.lang.Object
-
- org.htmlunit.util.NameValuePair
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
KeyDataPair
public class NameValuePair extends java.lang.Object implements java.io.Serializable
A name/value pair.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameValuePair(java.lang.String name, java.lang.String value)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
java.lang.String
getName()
Returns the name.java.lang.String
getValue()
Returns the value.int
hashCode()
NameValuePair
normalized()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
convert null values to empty stringjava.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
-
getValue
public java.lang.String getValue()
Returns the value.- Returns:
- the value
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
normalized
public NameValuePair normalized()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
convert null values to empty string- Returns:
- a normalized copy of the
NameValuePair
-
-