public enum StarRating extends Enum<StarRating> implements Serializable
| Enum Constant and Description |
|---|
FIVE_STARS |
FOUR_STARS |
NO_RECOMMENDATION |
ONE_STAR |
THREE_STARS |
TWO_STARS |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description for the star rating for this enum instance.
|
String |
getName()
Return the default symbol for this enum instance.
|
int |
getOrdinal()
Return the code for this enum instance
|
String |
toString()
Standard toString method.
|
static StarRating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StarRating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StarRating NO_RECOMMENDATION
public static final StarRating ONE_STAR
public static final StarRating TWO_STARS
public static final StarRating THREE_STARS
public static final StarRating FOUR_STARS
public static final StarRating FIVE_STARS
public static StarRating[] values()
for (StarRating c : StarRating.values()) System.out.println(c);
public static StarRating 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 int getOrdinal()
public String getName()
public String getDescription()
public String toString()
toString in class Enum<StarRating>Copyright © 2018–2020 ODPi. All rights reserved.