Enum AccountDefaultDisplayName
- java.lang.Object
-
- java.lang.Enum<AccountDefaultDisplayName>
-
- com.google.gerrit.extensions.common.AccountDefaultDisplayName
-
- All Implemented Interfaces:
Serializable
,Comparable<AccountDefaultDisplayName>
public enum AccountDefaultDisplayName extends Enum<AccountDefaultDisplayName>
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST_NAME
If the display name for an account is not set, then the first name (i.e.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.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccountDefaultDisplayName
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccountDefaultDisplayName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL_NAME
public static final AccountDefaultDisplayName 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
public static final AccountDefaultDisplayName 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
public static final AccountDefaultDisplayName 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 Detail
-
values
public static AccountDefaultDisplayName[] 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 (AccountDefaultDisplayName c : AccountDefaultDisplayName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountDefaultDisplayName 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
-
-