Annotation Type 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
      java.lang.Class<? extends java.lang.Enum<?>> value
      Sets the enum type from whose values the allowed values are taken
    • Element Detail

      • value

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