Enum RatingType

    • Enum Constant Detail

      • APPROVED

        public static final RatingType APPROVED
        Signals that the user approves (0) or disapproves(1)
      • RSVP

        public static final RatingType RSVP
        Indicates that the user can attend (0), cannot attend (1) or can maybe attend (2)
      • FIVESTAR

        public static final RatingType FIVESTAR
        A rating from 1-5 where 5 is the best
      • YESNO

        public static final RatingType YESNO
        Signals the user says yes (0) or no (1)
      • THUMBS

        public static final RatingType THUMBS
        Signals a thumbs up (0) or thumbs down (1)
      • LIKE

        public static final RatingType LIKE
        Signals the user likes the item (1)
    • Method Detail

      • values

        public static RatingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RatingType c : RatingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RatingType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null