HeartRating
public final class HeartRating extends Rating
A rating expressed as "heart" or "no heart". It can be used to indicate whether the content is a favorite.
Summary
Public fields |
|
|---|---|
final boolean |
Public constructors |
|---|
|
Creates a unrated instance. |
HeartRating(boolean isHeart)Creates a rated instance. |
Public methods |
|
|---|---|
boolean |
|
static HeartRating |
@UnstableApiRestores a |
int |
hashCode() |
boolean |
isHeart()Returns whether the rating is "heart". |
boolean |
isRated()Whether the rating exists or not. |
Bundle |
Returns a |
Inherited methods |
||
|---|---|---|
|
Public fields
Public constructors
HeartRating
public HeartRating(boolean isHeart)
Creates a rated instance.
| Parameters | |
|---|---|
boolean isHeart |
|
Public methods
fromBundle
@UnstableApi
public static HeartRating fromBundle(Bundle bundle)
Restores a HeartRating from a Bundle.
toBundle
@UnstableApi
public Bundle toBundle()
Returns a Bundle representing the information stored in this rating.