public enum StarRating extends Enum<StarRating> implements Serializable
| Enum Constant and Description |
|---|
FiveStar
Five star rating.
|
FourStar
Four star rating.
|
NotRecommended
This content is not recommended.
|
OneStar
One star rating.
|
ThreeStar
Three star rating.
|
TwoStar
Two star rating.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the enum.
|
String |
getName()
Return the descriptive name for the StarRating enum instance
|
int |
getOrdinal()
Return the numerical value for the enum.
|
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 NotRecommended
public static final StarRating OneStar
public static final StarRating TwoStar
public static final StarRating ThreeStar
public static final StarRating FourStar
public static final StarRating FiveStar
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 getDescription()
public String getName()
Copyright © 2017–2018 ODPi. All rights reserved.