Interface ConfigMigration.Step
- Enclosing class:
ConfigMigration
public static interface ConfigMigration.Step
One change, applied when its version is above the stored one. Returns what it changed, or null for nothing.
-
Method Summary
Modifier and TypeMethodDescriptionapply(ConfigMigration.ConfigAccess config) default Stringkey()The one key this step reads and writes, or null.intversion()
-
Method Details
-
version
int version() -
apply
-
key
The one key this step reads and writes, or null. Once the saved file holds the step's version, a client whose own copy of this key differs from the file takes the file's value (ConfigMigration.run(privbot.config.ConfigMigration.ConfigAccess, privbot.config.ConfigMigration.Step...)).
-