模块 java.base

注解可重复


@Documented @Retention (RUNTIME ) @Target (ANNOTATION_TYPE ) public @interface Repeatable
注释接口 java.lang.annotation.Repeatable 用于指示它(元)注释其声明的注释接口是 repeatable@Repeatable 的值表示可重复注释接口的 containing annotation interface
Java 语言规范:
9.6.3 可重复的注解接口
9.7.5 同一接口的多个注解
自从:
1.8
  • 必需元素摘要

    必需的元素
    修饰符和类型
    必需元素
    描述
    Class<? extends Annotation>
    指示可重复注释接口的containing annotation interface
  • 元素详细信息

    • value

      Class <? extends Annotation > value
      指示可重复注释接口的containing annotation interface
      返回:
      包含注解