Enum Class GravatarRating

java.lang.Object
java.lang.Enum<GravatarRating>
net.tangly.core.gravatar.GravatarRating
All Implemented Interfaces:
Serializable, Comparable<GravatarRating>, Constable

public enum GravatarRating extends Enum<GravatarRating>
Defines the official ratings of the gravatar site.
  • Enum Constant Details

    • GENERAL_AUDIENCES

      public static final GravatarRating GENERAL_AUDIENCES
    • PARENTAL_GUIDANCE_SUGGESTED

      public static final GravatarRating PARENTAL_GUIDANCE_SUGGESTED
    • RESTRICTED

      public static final GravatarRating RESTRICTED
    • EXPLICIT

      public static final GravatarRating EXPLICIT
  • Method Details

    • values

      public static GravatarRating[] 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

      public static GravatarRating valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public String code()