Enum Class AccountDefaultDisplayName
java.lang.Object
java.lang.Enum<AccountDefaultDisplayName>
com.google.gerrit.extensions.common.AccountDefaultDisplayName
- All Implemented Interfaces:
Serializable
,Comparable<AccountDefaultDisplayName>
,java.lang.constant.Constable
Fallback rule for choosing a display name, if it is not explicitly set. This rule will not be
applied by the backend, but should be applied by the user interface.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf the display name for an account is not set, then the first name (i.e.If the display name for an account is not set, then the (full) name will be used as the display name in the user interface.If the display name for an account is not set, then the username will be used as the display name in the user interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountDefaultDisplayName
Returns the enum constant of this class with the specified name.static AccountDefaultDisplayName[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL_NAME
If the display name for an account is not set, then the (full) name will be used as the display name in the user interface. -
FIRST_NAME
If the display name for an account is not set, then the first name (i.e. full name until first whitespace character) will be used as the display name in the user interface. -
USERNAME
If the display name for an account is not set, then the username will be used as the display name in the user interface. If the username is also not set, then the (full) name will be used.
-
-
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
-