|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DefaultImage>
de.bripkens.gravatar.DefaultImage
public enum DefaultImage
A default avatar can be received in case there is no avatar for an email address, when the avatar is not appropriate for the audience (due to the rating) or when you force default avatar retrieval. Default image descriptions were taken from the Gravatar website.
| Enum Constant Summary | |
|---|---|
HTTP_404
Return an HTTP 404 error. |
|
IDENTICON
A geometric pattern based on an email hash. |
|
MONSTER
A generated 'monster' with different colors, faces, etc. |
|
MYSTERY_MAN
A simple, cartoon-style silhouetted outline of a person (does not vary by email hash). |
|
RETRO
Awesome generated, 8-bit arcade-style pixelated faces. |
|
WAVATAR
Generated faces with differing features and backgrounds |
|
| Method Summary | |
|---|---|
static DefaultImage |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DefaultImage[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DefaultImage HTTP_404
public static final DefaultImage MYSTERY_MAN
public static final DefaultImage IDENTICON
public static final DefaultImage MONSTER
public static final DefaultImage WAVATAR
public static final DefaultImage RETRO
| Method Detail |
|---|
public static DefaultImage[] values()
for (DefaultImage c : DefaultImage.values()) System.out.println(c);
public static DefaultImage valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||