Package groovy.transform

# Annotation Interface Sealed

@Documented @Retention(RUNTIME) @Target(TYPE) 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:
      {}