Interface SettingUpgrader<T>
- Type Parameters:
T
- the type of the underlying setting
public interface SettingUpgrader<T>
Represents the logic to upgrade a setting.
-
Method Summary
Modifier and TypeMethodDescriptionThe logic to upgrade the setting key, for example by mapping the old setting key to the new setting key.getListValue(List<String> value)
The setting upgraded by this upgrader.default String
The logic to upgrade the setting value.
-
Method Details
-
getSetting
The setting upgraded by this upgrader.- Returns:
- the setting
-
getKey
The logic to upgrade the setting key, for example by mapping the old setting key to the new setting key.- Parameters:
key
- the setting key to upgrade- Returns:
- the upgraded setting key
-
getValue
The logic to upgrade the setting value.- Parameters:
value
- the setting value to upgrade- Returns:
- the upgraded setting value
-
getListValue
-