@Immutable @LevelUpApi(contract=INTERNAL) public final class Category extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<Category> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
Category(int id,
String name) |
Category(Parcel source)
Construct from a parcel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
getId()
Web service ID for the category.
|
String |
getName()
Category name.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Category> CREATOR
Parcelable interface.public Category(Parcel source)
source - parcel to read from.public Category(int id,
String name)
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic int getId()
public String getName()