Annotation Interface EnumValue


@Target(FIELD) @Retention(RUNTIME) public @interface EnumValue
Annotate the bean property is a Enum which will be serialized some ext property in json, such as xxxName and xxxDesc.
从以下版本开始:
1.0.0
版本:
1.0.0
作者:
ilikly
另请参阅:
  • 元素详细资料

    • value

      Class<? extends Enum> value
      枚举类型
      返回:
      the Enum value
    • creator

      String creator
      return the static creator name of target Enum.
      返回:
      the static creator method name.
      默认值:
      "valueOf"
    • valueType

      Class<?> valueType
      return the parameter type of the static creator.
      返回:
      the parameter type.
      另请参阅:
      默认值:
      java.lang.Integer.class
    • desc

      String desc
      序列化时增加的枚举描述对应的枚举属性
      返回:
      desc
      默认值:
      "desc"