Annotation Interface AllowedEnumValues


@Retention(RUNTIME) @Target(FIELD) public @interface AllowedEnumValues
Annotation that marks that the option/arguments are restricted to a given set of raw string values as defined by a given enum type
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Enum<?>>
    Sets the enum type from whose values the allowed values are taken
  • Element Details

    • value

      Class<? extends Enum<?>> value
      Sets the enum type from whose values the allowed values are taken
      Returns:
      Enum type