Annotation Interface ThisIs


@Documented @Retention(CLASS) @Target(METHOD) public @interface ThisIs
Annotation that typing generation mods can use to declare type guards.

Use this on boolean-returning methods that can guarantee that if the method returns true, the current instance may be treated as the provided class type.

Type guards can help narrow down types in conditional blocks.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details