Enum Class GravatarDefaultImageType

java.lang.Object
java.lang.Enum<GravatarDefaultImageType>
com.github.natche.gravatarjavaclient.enums.GravatarDefaultImageType
All Implemented Interfaces:
Serializable, Comparable<GravatarDefaultImageType>, Constable

public enum GravatarDefaultImageType extends Enum<GravatarDefaultImageType>
The default image types supported by Gravatar for their Avatar API. These themes are generated per-user based off of the provided hash.
  • Enum Constant Details

    • _404

      public static final GravatarDefaultImageType _404
      The 404 image type. This tells Gravatar not to load any image if none is associated with the email hash, instead return an HTTP 404 response.
    • MysteryPerson

      public static final GravatarDefaultImageType MysteryPerson
      The mystery person image type. A simple, cartoon-style silhouetted outline of a person. Note: this does not vary by email hash.
    • IdentIcon

      public static final GravatarDefaultImageType IdentIcon
      The ident icon image type. A geometric pattern based on an email hash; this is what GitHub uses for their default user avatars.
    • MonsterId

      public static final GravatarDefaultImageType MonsterId
      The monster ID image type. A generated "monster" with different colors, faces, and features.
    • Wavatar

      public static final GravatarDefaultImageType Wavatar
      The wavatar image type. Generated faces with differing features and backgrounds.
    • Retro

      public static final GravatarDefaultImageType Retro
      The retro image type. An awesome generated, 8-bit arcade-style pixelated faces.
    • RoboHash

      public static final GravatarDefaultImageType RoboHash
      The RoboHash image type. A generated robot with different colors, faces, and features. This is what the GitLens plugin for vscode uses.
    • Blank

      public static final GravatarDefaultImageType Blank
      The blank image type, returns a blank PNG.
  • Method Details

    • values

      public static GravatarDefaultImageType[] 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 GravatarDefaultImageType 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
    • getUrlParameterValue

      public String getUrlParameterValue()
      Returns the URL parameter value for this GravatarDefaultImageType.
      Returns:
      the URL parameter value for this GravatarDefaultImageType