public enum AnnotationRetention extends Enum<AnnotationRetention>
AnnotationValueFilter.| Enum Constant and Description | 
|---|
DISABLED
Disables annotation retention, i.e. annotations within an existing class files are discarded. 
 | 
ENABLED
Enables annotation retention, i.e. annotations within an existing class files are preserved as they are. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isEnabled()
Returns  
true if annotation retention is enabled. | 
static AnnotationRetention | 
of(boolean enabled)
Resolves an annotation retention from a boolean value. 
 | 
String | 
toString()  | 
static AnnotationRetention | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static AnnotationRetention[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final AnnotationRetention ENABLED
public static final AnnotationRetention DISABLED
public static AnnotationRetention[] values()
for (AnnotationRetention c : AnnotationRetention.values()) System.out.println(c);
public static AnnotationRetention valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AnnotationRetention of(boolean enabled)
enabled - true if annotation retention is enabled.true.public boolean isEnabled()
true if annotation retention is enabled.true if annotation retention is enabled.public String toString()
toString in class Enum<AnnotationRetention>Copyright © 2014–2016. All rights reserved.