Class 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 string
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameValuePair

        public NameValuePair​(java.lang.String name,
                             java.lang.String value)
        Creates a new instance.
        Parameters:
        name - the name
        value - the value
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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