Package com.ibm.cloud.sdk.core.http
Class NameValue
- java.lang.Object
-
- com.ibm.cloud.sdk.core.http.NameValue
-
public class NameValue extends java.lang.Object
A name / value pair parameter used as an element of HTTP messages.parameter = attribute "=" value attribute = token value = token | quoted-string
-
-
Constructor Summary
Constructors Constructor Description NameValue(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 boolean
equals(java.lang.Object o)
java.lang.String
getName()
Gets the name.java.lang.String
getValue()
Gets the value.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getName
public java.lang.String getName()
Gets the name.- Returns:
- the name
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- the value
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-