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 their Avatar API.
These themes are generated per-user based off of the provided hash.
-
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, returns a blank PNG.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. -
MysteryPerson
The mystery person image type. A simple, cartoon-style silhouetted outline of a person. Note: this does not vary by email hash. -
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
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. -
RoboHash
The RoboHash image type. A generated robot with different colors, faces, and features. This is what the GitLens plugin for vscode uses. -
Blank
The blank image type, returns a blank PNG.
-
-
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
-