Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
RetentionPolicy is an enum defining how long annotations are retained, used with the @Retention meta-annotation.
It has three values: SOURCE, CLASS (default), and RUNTIME, indicating whether annotations are discarded by the compiler, recorded in the class file, or available at runtime, respectively.
RetentionPolicy inherits methods from Enum, Object, and Comparable for common operations like comparisons and obtaining enum information.
Annotation retention policy. The constants of this enumerated type
describe the various policies for retaining annotations. They are used
in conjunction with the Retention meta-annotation type to specify
how long annotations are to be retained.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],[]]