Enum Class GravatarRating
- All Implemented Interfaces:
Serializable,Comparable<GravatarRating>,Constable
Valid ratings for a Gravatar Avatar image.
Gravatar allows users to self-rate their images so that they can indicate if an image is appropriate
for a given audience. By default, only
G rated images are displayed unless a user has explicitly
chosen they would like to view higher rated images.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL parameter for thisGravatarRating.static GravatarRatingReturns the enum constant of this class with the specified name.static GravatarRating[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
G
The G rating for a Gravatar user image. Suitable for display on all websites with any audience type. -
PG
The PG rating for a Gravatar user image. May contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. -
R
The R rating for a Gravatar user image. May contain such things as harsh profanity, intense violence, nudity, or hard drug use. -
X
The X rating for a Gravatar user image. May contain hardcore sexual imagery or extremely disturbing violence.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getUrlParameter
Returns the URL parameter for thisGravatarRating.- Returns:
- the URL parameter for this
GravatarRating
-