Package org.bremersee.dccon.model
Enum AvatarDefault
- java.lang.Object
-
- java.lang.Enum<AvatarDefault>
-
- org.bremersee.dccon.model.AvatarDefault
-
- All Implemented Interfaces:
Serializable
,Comparable<AvatarDefault>
public enum AvatarDefault extends Enum<AvatarDefault>
The avatar default.- Author:
- Christian Bremer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLANK
A transparent PNG image (border added to HTML below for demonstration purposes).IDENTICON
A geometric pattern based on an email hash.MONSTERID
A generated 'monster' with different colors, faces, etc.MP
Mystery-Person.NOT_FOUND
Do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response.RETRO
Awesome generated, 8-bit arcade-style pixelated faces.ROBOHASH
A generated robot with different colors, faces, etc.WAVATAR
Generated faces with differing features and backgrounds.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvatarDefault
fromValue(String value, AvatarDefault defaultAvatarDefault)
From value avatar default.String
toString()
static AvatarDefault
valueOf(String name)
Returns the enum constant of this type with the specified name.static AvatarDefault[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_FOUND
public static final AvatarDefault NOT_FOUND
Do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response.
-
MP
public static final AvatarDefault MP
Mystery-Person. A simple, cartoon-style silhouetted outline of a person (does not vary by email hash).
-
IDENTICON
public static final AvatarDefault IDENTICON
A geometric pattern based on an email hash.
-
MONSTERID
public static final AvatarDefault MONSTERID
A generated 'monster' with different colors, faces, etc.
-
WAVATAR
public static final AvatarDefault WAVATAR
Generated faces with differing features and backgrounds.
-
RETRO
public static final AvatarDefault RETRO
Awesome generated, 8-bit arcade-style pixelated faces.
-
ROBOHASH
public static final AvatarDefault ROBOHASH
A generated robot with different colors, faces, etc.
-
BLANK
public static final AvatarDefault BLANK
A transparent PNG image (border added to HTML below for demonstration purposes).
-
-
Method Detail
-
values
public static AvatarDefault[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AvatarDefault c : AvatarDefault.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvatarDefault valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<AvatarDefault>
-
fromValue
public static AvatarDefault fromValue(String value, AvatarDefault defaultAvatarDefault)
From value avatar default.- Parameters:
value
- the valuedefaultAvatarDefault
- the default avatar default- Returns:
- the avatar default
-
-