Class Rating
- java.lang.Object
-
- com.google.appengine.api.datastore.Rating
-
- All Implemented Interfaces:
Serializable
,Comparable<Rating>
public final class Rating extends Object implements Serializable, Comparable<Rating>
A user-provided integer rating for a piece of content. Normalized to a 0-100 scale.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_VALUE
The maximum legal value for a rating.static int
MIN_VALUE
The minimum legal value for a rating.static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Rating(int rating)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final int MIN_VALUE
The minimum legal value for a rating.- See Also:
- Constant Field Values
-
MAX_VALUE
public static final int MAX_VALUE
The maximum legal value for a rating.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rating
public Rating(int rating)
- Throws:
IllegalArgumentException
- Ifrating
is smaller thanMIN_VALUE
or greater thanMAX_VALUE
-
-