TheElectronWill / night-config

Powerful java configuration library for toml, yaml, hocon, json and in-memory configurations. Serialization/deserialization framework.
GNU Lesser General Public License v3.0
242 stars 28 forks source link

Default value annotations #141

Closed NeumimTo closed 1 year ago

NeumimTo commented 1 year ago

Add an option to define default values via annotations when using ObjectConverter

TheElectronWill commented 1 year ago

Hello!

You can already define default values like this:

class MyObject {
  String field = "default value";
}

See the examples.