public final class RequestId
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<RequestId> |
CREATOR
CREATOR field that generates instance of RequestId object from a Parcel.
|
Constructor and Description |
---|
RequestId()
Creates a new
RequestId object. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object other)
Compares two request IDs.
|
static RequestId |
fromString(java.lang.String encodedId)
Creates a
RequestId from its encoded string form. |
int |
hashCode() |
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
RequestId instance.
|
java.lang.String |
toString()
Returns the encoded string form of the RequestId.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<RequestId> CREATOR
public RequestId()
RequestId
object.public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object
public static RequestId fromString(java.lang.String encodedId)
RequestId
from its encoded string form.encodedId
- The encoded string form retrieved by
toString()
.RequestId
built from the provided String form.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- RequestId
Object which to compare to the this object.true
if two request IDs are equal, otherwise
returns false
.public int hashCode()
hashCode
in class java.lang.Object
public org.json.JSONObject toJSON()