Package com.google.android.exoplayer2
Class ThumbRating
- java.lang.Object
-
- com.google.android.exoplayer2.Rating
-
- com.google.android.exoplayer2.ThumbRating
-
- All Implemented Interfaces:
Bundleable
public final class ThumbRating extends Rating
A rating expressed as "thumbs up" or "thumbs down".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<ThumbRating>CREATORObject that can restore aThumbRatingfrom aBundle.-
Fields inherited from class com.google.android.exoplayer2.Rating
RATING_UNSET
-
-
Constructor Summary
Constructors Constructor Description ThumbRating()Creates a unrated instance.ThumbRating(boolean isThumbsUp)Creates a rated instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()booleanisRated()Whether the rating exists or not.booleanisThumbsUp()Returns whether the rating is "thumbs up".BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
CREATOR
public static final Bundleable.Creator<ThumbRating> CREATOR
Object that can restore aThumbRatingfrom aBundle.
-
-
Method Detail
-
isRated
public boolean isRated()
Description copied from class:RatingWhether the rating exists or not.
-
isThumbsUp
public boolean isThumbsUp()
Returns whether the rating is "thumbs up".
-
toBundle
public Bundle toBundle()
Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.
-
-