Annotation Interface Option.AllowedValue

Enclosing class:
Option

@Target(METHOD) @Inherited @Retention(CLASS) @Repeatable(AllowedValues.class) public static @interface Option.AllowedValue
Can be used to define a list of possible values of an option.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Description of this value, used in documentation, may be used in error handling.
    Value of the option.
  • Element Details

    • value

      String value
      Value of the option.
      Returns:
      value
    • description

      String description
      Description of this value, used in documentation, may be used in error handling.
      Returns:
      description