前言
- 注释类型{@code java.lang.annotation.Repeatable}用于指示其声明(元)注释的注释类型是可重复的。
- {@code @Repeatable}的值表示可重复注释类型的包含注释类型。
源码
package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Repeatable {
/**
* 指示可重复注释类型的包含注释类型。
*/
Class<? extends Annotation> value();
}