Enum Class GravatarDefaultImageType
java.lang.Object
java.lang.Enum<GravatarDefaultImageType>
com.github.natche.gravatarjavaclient.enums.GravatarDefaultImageType
- All Implemented Interfaces:
Serializable,Comparable<GravatarDefaultImageType>,Constable
The default image types supported by Gravatar for the Avatar API.
These themes are generated per-user based off of the hash of an account's email address.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 404 image type.The blank image type.The ident icon image type.The monster id image type.The mystery person image type.The retro image type.The RoboHash image type.The wavatar image type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL parameter value for thisGravatarDefaultImageType.static GravatarDefaultImageTypeReturns the enum constant of this class with the specified name.static GravatarDefaultImageType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
_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. -
MYSTERY_PERSON
The mystery person image type. A simple, cartoon-style silhouetted outline of a person. Note: this does not vary by email hash. -
IDENT_ICON
The ident icon image type. A geometric pattern based on an email hash; this is what GitHub uses for default user avatars. -
MONSTER_ID
The monster id image type. A generated "monster" with different colors, faces, and features. -
WAVATAR
The wavatar image type. Generated faces with differing features and backgrounds. -
RETRO
The retro image type. An awesome generated, 8-bit arcade-style pixelated faces. -
ROBO_HASH
The RoboHash image type. A generated robot with different colors, faces, and features. This is what the GitLens plugin for vscode uses. See JRoboHash for a RoboHash JVM wrapper library. -
BLANK
The blank image type. A blank PNG image, how boring.
-
-
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
-
getUrlParameterValue
Returns the URL parameter value for thisGravatarDefaultImageType.- Returns:
- the URL parameter value for this
GravatarDefaultImageType
-