Class 
Use 
SUMMARY: NESTED | ENUM CONSTANTS | METHOD      DETAIL: ENUM CONSTANTS | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

java.base / java.lang.annotation
Enum RetentionPolicy
java.lang.Object
  java.lang.Enum<RetentionPolicy>
      java.lang.annotation.RetentionPolicy
All Implemented Interfaces:
Serializable, Comparable<RetentionPolicy>, Constable

public enum RetentionPolicy
extends Enum<RetentionPolicy>
Annotation retention policy. The constants of this enumerated class describe the various policies for retaining annotations. They are used in conjunction with the Retention meta-annotation interface to specify how long annotations are to be retained.
Since:
1.5
Author:
Joshua Bloch

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time.
Annotations are to be recorded in the class file by the compiler and retained by the VM at run time, so they may be read reflectively.
Annotations are to be discarded by the compiler.
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail
SOURCE
public static final RetentionPolicy SOURCE
Annotations are to be discarded by the compiler.

CLASS
public static final RetentionPolicy CLASS
Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time. This is the default behavior.

RUNTIME
public static final RetentionPolicy RUNTIME
Annotations are to be recorded in the class file by the compiler and retained by the VM at run time, so they may be read reflectively.
See Also:
AnnotatedElement
Method Detail
values
static RetentionPolicy[] values
()

valueOf
static RetentionPolicy valueOf
(String name)

 Class 
Use 
SUMMARY: NESTED | ENUM CONSTANTS | METHOD      DETAIL: ENUM CONSTANTS | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz