Annotation Interface MultiChoice


@Retention(RUNTIME) @Target(FIELD) public @interface MultiChoice
Renders a list field as a multi-select list of enum values.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stable storage key for the config value.
    User-facing label.
    Enum type containing selectable values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Maximum number of selected values.
    int
    Minimum number of selected values.
    Optional tooltip text.
  • Element Details

    • key

      String key
      Stable storage key for the config value.
    • label

      String label
      User-facing label.
    • tooltip

      String tooltip
      Optional tooltip text.
      Default:
      ""
    • type

      Class<?> type
      Enum type containing selectable values.
    • min

      int min
      Minimum number of selected values.
      Default:
      0
    • max

      int max
      Maximum number of selected values.
      Default:
      2147483647