Android
java.lang.annotation
public final enum

java.lang.annotation.RetentionPolicy

java.lang.Object
java.lang.Enum<E extends java.lang.Enum<E>> Serializable Comparable<T>
java.lang.annotation.RetentionPolicy

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

Enum Values

RetentionPolicy  CLASS  Annotation is available in the source code and in the class file, but not at runtime. 
RetentionPolicy  RUNTIME  Annotation is available in the source code, the class file and is available at runtime. 
RetentionPolicy  SOURCE  Annotation is only available in the source code. 

Public Methods

      static    RetentionPolicy  valueOf(String name)
    final  static    RetentionPolicy[]  values()
Methods inherited from class java.lang.Enum
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Enum Values

public static final RetentionPolicy CLASS

Annotation is available in the source code and in the class file, but not at runtime. This is the default policy.

public static final RetentionPolicy RUNTIME

Annotation is available in the source code, the class file and is available at runtime.

public static final RetentionPolicy SOURCE

Annotation is only available in the source code.

Public Methods

public static RetentionPolicy valueOf(String name)

public static final RetentionPolicy[] values()

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56