Annotation Type SpecEnum


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface SpecEnum
    Specifies that the value of a field must correspond to an enum and that the value must be read using the given EnumGetMethod.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      EnumGetMethod method
      How to interpret the config value.
    • Element Detail

      • method

        EnumGetMethod method
        How to interpret the config value. For instance, should we match the name and the ordinal() or just the name? Should we ignore the case of the string value or not?