public enum CarouselSortBy extends Enum<CarouselSortBy> implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Enum Constant and Description |
---|
FIRST_PUBLISHED_TIME |
MOST_POPULAR |
POPULARITY |
RECENTLY_CREATED |
RECENTLY_PUBLISHED |
TOP_RATED |
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CarouselSortBy> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static CarouselSortBy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CarouselSortBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final CarouselSortBy POPULARITY
public static final CarouselSortBy FIRST_PUBLISHED_TIME
public static final CarouselSortBy MOST_POPULAR
public static final CarouselSortBy RECENTLY_PUBLISHED
public static final CarouselSortBy RECENTLY_CREATED
public static final CarouselSortBy TOP_RATED
public static final Parcelable.Creator<CarouselSortBy> CREATOR
public static CarouselSortBy[] values()
for (CarouselSortBy c : CarouselSortBy.values()) System.out.println(c);
public static CarouselSortBy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable