Uses of Class java.lang.annotation.RetentionPolicy (Java SE 14 & JDK 14)
Description: use: module: java.base, package: java.lang.annotation, enum: RetentionPolicy

# Uses of Class
java.lang.annotation.RetentionPolicy

Packages that use RetentionPolicy
Package | Description
--- | ---
java.lang.annotation | Provides library support for the Java programming language annotation facility.

- ## Uses of RetentionPolicy in java.lang.annotation

  Methods in java.lang.annotation that return RetentionPolicy
  Modifier and Type | Method | Description
  --- | --- | ---
  `RetentionPolicy` | `value()` | Returns the retention policy.
  `static RetentionPolicy` | RetentionPolicy.`valueOf​(String name)` | Returns the enum constant of this type with the specified name.
  `static RetentionPolicy[]` | RetentionPolicy.`values()` | Returns an array containing the constants of this enum type, in the order they are declared.