Annotation Interface DefaultEnum


@Retention(RUNTIME) @Target({CONSTRUCTOR,FIELD,RECORD_COMPONENT}) public @interface DefaultEnum
An annotation for specifying the default enum value.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the default enum value.
  • Element Details

    • value

      String value
      Returns the name of the default enum value.
      Returns:
      the name of the default enum value