public enum NotificationCategory extends Enum<NotificationCategory> implements BaseUiEnum<Integer>
Description: 通知类别
| 枚举常量和说明 |
|---|
ANNOUNCEMENT
enum
|
DIALOGUE |
| 限定符和类型 | 方法和说明 |
|---|---|
static NotificationCategory |
get(Integer index) |
String |
getDescription() |
static List<Map<String,Object>> |
getPreprocessedJsonStructure() |
Integer |
getValue()
不加@JsonValue,转换的时候转换出完整的对象。
|
static NotificationCategory |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static NotificationCategory[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final NotificationCategory ANNOUNCEMENT
public static final NotificationCategory DIALOGUE
public static NotificationCategory[] values()
for (NotificationCategory c : NotificationCategory.values()) System.out.println(c);
public static NotificationCategory valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getValue()
不使用@JsonValue @JsonDeserializer类里面要做相应的处理
public String getDescription()
getDescription 在接口中 EnumDescriptionpublic static NotificationCategory get(Integer index)
Copyright © 2023 Dromara. All rights reserved.