ThumbRating
public
final
class
ThumbRating
extends Object
implements
Rating
java.lang.Object
|
↳ |
androidx.media2.session.ThumbRating
|
A class for rating with a single degree of rating, "thumb up" vs "thumb down".
Summary
Public constructors |
ThumbRating()
Creates a unrated ThumbRating instance.
|
ThumbRating(boolean thumbIsUp)
Creates a ThumbRating instance.
|
Public methods |
boolean
|
equals(Object obj)
|
int
|
hashCode()
|
boolean
|
isRated()
Returns whether there is a rating value available.
|
boolean
|
isThumbUp()
Returns whether the rating is "thumb up".
|
String
|
toString()
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
Public constructors
ThumbRating
public ThumbRating ()
Creates a unrated ThumbRating instance.
ThumbRating
public ThumbRating (boolean thumbIsUp)
Creates a ThumbRating instance.
Parameters |
thumbIsUp |
boolean : true for a "thumb up" rating, false for "thumb down".
|
Public methods
equals
public boolean equals (Object obj)
hashCode
public int hashCode ()
isRated
public boolean isRated ()
Returns whether there is a rating value available.
Returns |
boolean |
true if there is an available rating value.
|
isThumbUp
public boolean isThumbUp ()
Returns whether the rating is "thumb up".
Returns |
boolean |
true if the rating is "thumb up", false if the rating is "thumb down",
or if it is unrated.
|
toString
public String toString ()