docs/doc/reference/com/google/android/exoplayer2/PercentageRating.html
Package com.google.android.exoplayer2
All Implemented Interfaces:Bundleable
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classPercentageRatingextends[Rating](Rating.html "class in com.google.android.exoplayer2")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A rating expressed as a percentage.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<PercentageRating> | CREATOR |
Deprecated.
Object that can restore a PercentageRating from a Bundle.
|
Constructors | Constructor | Description |
| --- | --- |
| PercentageRating() |
Deprecated.
Creates a unrated instance.
|
| PercentageRating(float percent) |
Deprecated.
Creates a rated instance with the given percentage. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) |
Deprecated.
|
| float | getPercent() |
Deprecated.
Returns the percent value of this rating.
|
| int | hashCode() |
Deprecated.
|
| boolean | isRated() |
Deprecated.
Whether the rating exists or not.
|
| Bundle | toBundle() |
Deprecated.
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public static final[Bundleable.Creator](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[PercentageRating](PercentageRating.html "class in com.google.android.exoplayer2")> CREATOR
Deprecated.
Object that can restore a PercentageRating from a Bundle.
-
public PercentageRating()
Deprecated.
Creates a unrated instance.
-
public PercentageRating(@FloatRange(from=0.0,to=100.0)
float percent)
Deprecated.
Creates a rated instance with the given percentage.
Parameters:percent - The percentage value of the rating.
-
public boolean isRated()
Deprecated.
Description copied from class: Rating
Whether the rating exists or not.
Specified by:isRated in class Rating
-
public float getPercent()
Deprecated.
Returns the percent value of this rating. Will be within the range [0f, 100f], or Rating.RATING_UNSET if unrated.
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Deprecated.
Description copied from interface: Bundleable
Returns a Bundle representing the information stored in this object.