public enum Rating extends Enum<Rating>
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
toString() |
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 G
public static final Rating PG
public static final Rating R
public static final Rating X
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 String getCode()
Copyright © 2014. All Rights Reserved.