Package org.htmlunit.util

# Class NameValuePair

java.lang.Object
org.htmlunit.util.NameValuePair

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `KeyDataPair`

public class NameValuePair extends Object implements Serializable
A name/value pair.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NameValuePair(String name, String value)`
  Creates a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object object)`
  `String`
  `getName()`
  Returns the name.
  `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 string
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NameValuePair

    public NameValuePair(String name, String value)
    Creates a new instance.
    Parameters:
      `name` - the name
      `value` - the value

- ## Method Details

  - ### getName

    public String getName()
    Returns the name.
    Returns:
      the name

  - ### getValue

    public String getValue()
    Returns the value.
    Returns:
      the value

  - ### equals

    public boolean equals(Object object)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `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`