Annotation Type ConfigValue
-
@Retention(RUNTIME) @Target(FIELD) public @interface ConfigValue
Annotation used to mark a field as a config value. All properties are optional.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueDefault value of the config value.StringdescriptionDescription of the config value.booleanlimitedWhether to check the min and max values.doublemaxMaximum value of the config value.doubleminMinimum value of the config value.StringnameName of the config value.booleanrequiredWhether the config value is required.
-
-
-
Element Detail
-
name
String name
Name of the config value. If not specified, the name of the field will be used- Default:
- ""
-
-
-
defaultValue
String defaultValue
Default value of the config value. If the config file doesn't contain a value for this field, this value will be used- Default:
- ""
-
-
-
description
String description
Description of the config value. This will be used to generate the config file- Default:
- ""
-
-