Interface RatingAnnotation

    • Field Detail

      • LEVEL_ZERO

        static final int LEVEL_ZERO
        Indicates the object is not rated.
        See Also:
        Constant Field Values
      • LEVEL_ONE

        static final int LEVEL_ONE
        Indicates the object is rated with one star.
        See Also:
        Constant Field Values
      • LEVEL_TWO

        static final int LEVEL_TWO
        Indicates the object is rated with two stars.
        See Also:
        Constant Field Values
      • LEVEL_THREE

        static final int LEVEL_THREE
        Indicates the object is rated with three stars.
        See Also:
        Constant Field Values
      • LEVEL_FOUR

        static final int LEVEL_FOUR
        Indicates the object is rated with four stars.
        See Also:
        Constant Field Values
      • LEVEL_FIVE

        static final int LEVEL_FIVE
        Indicates the object is rated with five stars.
        See Also:
        Constant Field Values
    • Method Detail

      • getRating

        int getRating()
        Returns the rating value.
        Returns:
        See above.
      • setRating

        void setRating​(int value)
        Sets the rating value.
        Parameters:
        value - The value to set. Must be one of the constants defined by this class.