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:
  • 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