Annotation Interface EnumString


@Target(FIELD) @Retention(CLASS) public @interface EnumString
Annotation to mark a field as an enum represented by a string. This annotation can be used to specify the allowed values for the enum.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The values that are allowed for this field.
  • Element Details

    • values

      String[] values
      The values that are allowed for this field.
      Default:
      {}