public enum ApplicationType extends Enum<ApplicationType>
Description: 应用类别
| 限定符和类型 | 方法和说明 |
|---|---|
static ApplicationType |
getApplicationType(Integer index) |
Integer |
getIndex()
不加@JsonValue,转换的时候转换出完整的对象。
|
String |
getText() |
static List<Map<String,Object>> |
getToJsonStruct() |
static ApplicationType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ApplicationType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ApplicationType WEB
public static final ApplicationType SERVICE
public static final ApplicationType APP
public static final ApplicationType WAP
public static final ApplicationType MINI
public static ApplicationType[] values()
for (ApplicationType c : ApplicationType.values()) System.out.println(c);
public static ApplicationType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getIndex()
不使用@JsonValue @JsonDeserializer类里面要做相应的处理
public String getText()
public static ApplicationType getApplicationType(Integer index)
Copyright © 2022. All rights reserved.