public enum Rating extends Enum<Rating>
Enum Constant and Description |
---|
GeneralAudience
Suitable for display on all websites with any audience type.
|
ParentalGuidanceSuggested
May contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
|
Restricted
May contain such things as harsh profanity, intense violence, nudity, or hard drug use.
|
Xplicit
May contain hardcore sexual imagery or extremely disturbing violence.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
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 GeneralAudience
public static final Rating ParentalGuidanceSuggested
public static final Rating Restricted
public static final Rating Xplicit
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 © 2013. All rights reserved.