@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Setting
@Settings(onlyAnnotated = true)| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
comment
Sets the comment that will be used for this setting.
|
boolean |
constant
Marks a setting as constant or final.
|
boolean |
ignore
Marks that this field should be ignored during serialisation.
|
java.lang.String |
name
Sets the name that will be used for this setting.
|
public abstract boolean constant
Constant settings can not have their value changed after being initialised.
public abstract java.lang.String name
Custom names have a higher authority than naming conventions, and will not be affected by them.
If the name is empty, the name of the field being annotated will be used and the naming convention will be applied to that name.
"") if no custom name was set, or the custom name if one was set.