Annotation Interface Is


@Documented @Retention(RUNTIME) @Target(TYPE) @Deprecated(since="Java 17", forRemoval=true) public @interface Is
Deprecated, for removal: This API element is subject to removal in a future version.
Java 17 has sealed classes and pattern switch which makes this annotation obsolete.
Annotates types that have a fixed list of subtypes.

Since 4.0 the visitor is no longer generated for types annotated with this annotation. It will be removed in future releases.

Since:
2.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    List of case subclasses of the annotated class.
  • Element Details

    • value

      Class<?>[] value
      Deprecated, for removal: This API element is subject to removal in a future version.
      List of case subclasses of the annotated class.