Module java.base

Annotation Interface Repeatable


@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Repeatable
注解接口 java.lang.annotation.Repeatable 用于指示其(元)注解的注解接口是可重复的。 @Repeatable 的值表示可重复注解接口的 包含注解接口
参见 Java 语言规范:
9.6.3 可重复注解接口
9.7.5 同一接口的多个注解
自版本:
1.8
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Annotation>
    表示可重复注解接口的 包含注解接口
  • Element Details

    • value

      Class<? extends Annotation> value
      表示可重复注解接口的 包含注解接口
      返回:
      包含注解接口