Enum AvatarDefault

    • 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 name
        NullPointerException - if the argument is null
      • fromValue

        public static AvatarDefault fromValue​(String value,
                                              AvatarDefault defaultAvatarDefault)
        From value avatar default.
        Parameters:
        value - the value
        defaultAvatarDefault - the default avatar default
        Returns:
        the avatar default