public enum Rating extends Enum<Rating>
| Enum Constant and Description |
|---|
FIVE_STARS |
FOUR_STARS |
NO_RATING |
ONE_STAR |
THREE_STARS |
TWO_STARS |
| Modifier and Type | Method and Description |
|---|---|
static Rating |
getRating(int ratingInteger) |
static Rating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rating NO_RATING
public static final Rating ONE_STAR
public static final Rating TWO_STARS
public static final Rating THREE_STARS
public static final Rating FOUR_STARS
public static final Rating FIVE_STARS
public static Rating[] values()
for (Rating c : Rating.values()) System.out.println(c);
public static Rating valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static Rating getRating(int ratingInteger)