Class BasicNameValuePair

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private static long serialVersionUID  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicNameValuePair​(java.lang.String name, java.lang.String value)
      Default Constructor taking a name and a value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      boolean equals​(java.lang.Object object)  
      java.lang.String getName()
      Gets the name of this pair.
      java.lang.String getValue()
      Gets the value of this pair.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • value

        private final java.lang.String value
    • Constructor Detail

      • BasicNameValuePair

        public BasicNameValuePair​(java.lang.String name,
                                  java.lang.String value)
        Default Constructor taking a name and a value. The value may be null.
        Parameters:
        name - The name.
        value - The value.
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: NameValuePair
        Gets the name of this pair.
        Specified by:
        getName in interface NameValuePair
        Returns:
        the name of this pair, never null.
      • getValue

        public java.lang.String getValue()
        Description copied from interface: NameValuePair
        Gets the value of this pair.
        Specified by:
        getValue in interface NameValuePair
        Returns:
        the value of this pair, may be null.
      • toString

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

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException