public enum AnnotationRetention extends Enum<AnnotationRetention>
AnnotationValueFilter.| Enum Constant and Description | 
|---|
| DISABLEDDisables annotation retention, i.e. | 
| ENABLEDEnables annotation retention, i.e. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isEnabled()Returns  trueif annotation retention is enabled. | 
| static AnnotationRetention | of(boolean enabled)Resolves an annotation retention from a boolean value. | 
| 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.Copyright © 2014–2023. All rights reserved.