public enum AnnotationRetention extends java.lang.Enum<AnnotationRetention>
AnnotationValueFilter.| Enum Constant and Description |
|---|
DISABLED
Disables annotation retention, i.e.
|
ENABLED
Enables annotation retention, i.e.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
enabled
true if annotation retention is enabled. |
| 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.
|
static AnnotationRetention |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - 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.