Annotation Interface 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
    How to interpret the config value.
  • Element Details

    • 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?