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