@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Retention
RetentionPolicy.CLASS.
A Retention meta-annotation has effect only if the meta-annotated type is used directly for annotation. It has no effect if the meta-annotated type is used as a member type in another annotation type.
| 限定符和类型 | 必需的元素 | 说明 |
|---|---|---|
RetentionPolicy |
value |
Returns the retention policy.
|
RetentionPolicy value