public final enum

RetentionPolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ java.lang.annotation.RetentionPolicy

Class Overview

Defines an enumeration for annotation retention policies. Used in conjunction with the Retention annotation to specify an annotation's time-to-live in the overall development life cycle.

Summary

Public Methods
static RetentionPolicy valueOf(String name)
final static RetentionPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Public Methods

public static RetentionPolicy valueOf (String name)

Since: API Level 1

public static final RetentionPolicy[] values ()

Since: API Level 1