Module net.bis5.mattermost4j.models
Enum TeammateNameDisplay
- java.lang.Object
-
- java.lang.Enum<TeammateNameDisplay>
-
- net.bis5.mattermost.model.config.consts.TeammateNameDisplay
-
- All Implemented Interfaces:
Serializable,Comparable<TeammateNameDisplay>,HasCode<TeammateNameDisplay>
public enum TeammateNameDisplay extends Enum<TeammateNameDisplay> implements HasCode<TeammateNameDisplay>
The type of teammate name display.- Author:
- Takayuki Maruyama
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTeammateNameDisplay.TeammateNameDisplayDeserializer
-
Enum Constant Summary
Enum Constants Enum Constant Description FullNameNickNameFullNameUserName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static TeammateNameDisplayof(String code)static TeammateNameDisplayvalueOf(String name)Returns the enum constant of this type with the specified name.static TeammateNameDisplay[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UserName
public static final TeammateNameDisplay UserName
-
NickNameFullName
public static final TeammateNameDisplay NickNameFullName
-
FullName
public static final TeammateNameDisplay FullName
-
-
Method Detail
-
values
public static TeammateNameDisplay[] 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 (TeammateNameDisplay c : TeammateNameDisplay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TeammateNameDisplay 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
-
of
public static TeammateNameDisplay of(String code)
-
getCode
public String getCode()
- Specified by:
getCodein interfaceHasCode<TeammateNameDisplay>
-
-