Enum UserAvatarOption
- java.lang.Object
-
- java.lang.Enum<UserAvatarOption>
-
- io.goobi.viewer.model.security.user.icon.UserAvatarOption
-
- All Implemented Interfaces:
Serializable
,Comparable<UserAvatarOption>
public enum UserAvatarOption extends Enum<UserAvatarOption>
- Author:
- florian
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAvatar
getAvatar(User user)
static UserAvatarOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static UserAvatarOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final UserAvatarOption DEFAULT
-
LOCAL
public static final UserAvatarOption LOCAL
-
GRAVATAR
public static final UserAvatarOption GRAVATAR
-
-
Method Detail
-
values
public static UserAvatarOption[] 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 (UserAvatarOption c : UserAvatarOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserAvatarOption 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
-
getAvatar
public UserAvatar getAvatar(User user)
-
-