Enum Class PolicyEnums
- All Implemented Interfaces:
cn.herodotus.engine.assistant.definition.enums.BaseUiEnum<Integer>,cn.herodotus.engine.assistant.definition.enums.EnumDescription,cn.herodotus.engine.assistant.definition.enums.EnumValue<Integer>,Serializable,Comparable<PolicyEnums>,Constable
public enum PolicyEnums
extends Enum<PolicyEnums>
implements cn.herodotus.engine.assistant.definition.enums.BaseUiEnum<Integer>
Description: 访问策略枚举
定义该枚举是为了方便前后端数据传输,以及具体Sse 具体策略切换
通过统一的接口发送到前端,作为字典使用。用于单选,传索引值即可。
- Author:
- : gengwei.zheng
- Date:
- : 2023/6/5 21:23
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyEnumsgetValue()不加@JsonValue,转换的时候转换出完整的对象。 加了@JsonValue,只会显示相应的属性的值static PolicyEnumsReturns the enum constant of this class with the specified name.static PolicyEnums[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIVATE
enum -
PUBLIC
-
CUSTOM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-
getPreprocessedJsonStructure
-
getValue
不加@JsonValue,转换的时候转换出完整的对象。 加了@JsonValue,只会显示相应的属性的值不使用@JsonValue @JsonDeserializer类里面要做相应的处理
- Specified by:
getValuein interfacecn.herodotus.engine.assistant.definition.enums.EnumValue<Integer>- Returns:
- Enum枚举值
-
getDescription
- Specified by:
getDescriptionin interfacecn.herodotus.engine.assistant.definition.enums.EnumDescription
-