@Immutable @LevelUpApi(contract=ENTERPRISE) public final class Ticket extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Ticket> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Ticket(Parcel source)
Construct from a parcel.
|
Ticket(String body)
Constructor.
|
Ticket(String body,
String category) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getBody()
Ticket body.
|
String |
getCategory()
Ticket category.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Ticket> CREATOR
Parcelable
interface.public Ticket(String body)
body
- The ticket body.public Ticket(Parcel source)
source
- parcel to read from.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getBody()
public String getCategory()