Annotation Interface AsOf


@Documented @AsOf("0.0.1") @Target({METHOD,TYPE,CONSTRUCTOR,MODULE,PACKAGE,FIELD}) @Internal @Retention(RUNTIME) public @interface AsOf
This annotation is used to indicate the version or date since the annotated element has been present or modified. It is typically used for API documentation to inform users about the lifecycle of the API elements. Usage:

@AsOf("1.0")
public void someApiMethod() {
    //...
}

In the above example, the someApiMethod method has been present or modified since version 1.0.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the version or date since the annotated element has been present or modified.
  • Element Details

    • value

      Returns the version or date since the annotated element has been present or modified.
      Returns:
      A string representing the version or date.