Annotation Interface ExperimentalApi


@Documented @Retention(CLASS) @Target({TYPE,METHOD,CONSTRUCTOR,FIELD,PACKAGE}) public @interface ExperimentalApi
Indicates that an annotated element is experimental and may be subject to change or removal in future versions. This annotation serves as a warning to developers that the API is not stable and its behavior may not be finalized.

Use this annotation to mark classes, methods, constructors, fields, or packages that are in an experimental state and should be used with caution.

Such elements are typically introduced for testing purposes or early feedback and are not guaranteed to be part of the final API.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Version in which the annotated API became experimental.
  • Element Details

    • since

      String since
      Version in which the annotated API became experimental.
      Default:
      ""