@Unstable public enum DisplayStyle extends Enum<DisplayStyle>
Enum Constant and Description |
---|
FIRST_NAME
Displays only the first name of the mentioned user.
|
FULL_NAME
Displays the first and last name of the mentioned user.
|
LOGIN
Displays the login of the mentioned user.
|
Modifier and Type | Method and Description |
---|---|
static DisplayStyle |
getOrDefault(String style) |
static DisplayStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisplayStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayStyle FULL_NAME
public static final DisplayStyle FIRST_NAME
public static final DisplayStyle LOGIN
public static DisplayStyle[] values()
for (DisplayStyle c : DisplayStyle.values()) System.out.println(c);
public static DisplayStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Unstable public static DisplayStyle getOrDefault(String style)
style
- the display style (e.g., login)valueOf(String)
or FULL_NAME
if style is null
Copyright © 2004–2022 XWiki. All rights reserved.