public enum Rating extends Enum<Rating>
Enum Constant and Description |
---|
AVERAGE |
EXCELLENT |
GOOD |
POOR |
TERRIBLE |
Modifier and Type | Method and Description |
---|---|
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 TERRIBLE
public static final Rating POOR
public static final Rating AVERAGE
public static final Rating GOOD
public static final Rating EXCELLENT
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 null