public class NameValuePair
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NameValuePair> |
CREATOR |
Constructor and Description |
---|
NameValuePair() |
NameValuePair(NameValuePair pair) |
NameValuePair(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(NameValuePair rhsc) |
boolean |
equals(java.lang.Object o) |
static NameValuePair |
fromJSON(org.json.JSONObject obj) |
java.lang.String |
getName() |
java.lang.String |
getValue() |
int |
hashCode() |
boolean |
isValid() |
void |
setName(java.lang.String name) |
void |
setValue(java.lang.String value) |
org.json.JSONObject |
toJSON() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NameValuePair> CREATOR
public NameValuePair()
public NameValuePair(java.lang.String name, java.lang.String value)
public NameValuePair(NameValuePair pair)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public boolean isValid()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(NameValuePair rhsc)
public java.lang.String toString()
toString
in class java.lang.Object
public static NameValuePair fromJSON(org.json.JSONObject obj) throws org.json.JSONException
org.json.JSONException
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException