Package groovy.transform

# Annotation Type Sealed

@Documented @Retention(RUNTIME) @Target(TYPE) @Incubating public @interface Sealed
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
  `Class[]`
  `permittedSubclasses`
  List of the permitted subclasses.

- ## Element Details

  - ### permittedSubclasses

    Class[] permittedSubclasses
    List of the permitted subclasses.
    Default:
      {}