Annotation Type SealedOptions


@Documented @Incubating @Retention(SOURCE) @Target(TYPE) public @interface SealedOptions
Class annotation used to assist in the creation of sealed classes.
Since:
4.0.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Add annotations even for native sealed classes.
    Mode to use when creating sealed classes.
  • Element Details

    • mode

      Mode to use when creating sealed classes.
      Default:
      AUTO
    • alwaysAnnotate

      boolean alwaysAnnotate
      Add annotations even for native sealed classes. Ignored when emulating sealed classes since then annotations are always used.
      Default:
      true