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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetKey(String key)The logic to upgrade the setting key, for example by mapping the old setting key to the new setting key.default List<String>getListValue(List<String> value)Setting<T>getSetting()The setting upgraded by this upgrader.default StringgetValue(String value)The logic to upgrade the setting value.
-
-
-
Method Detail
-
getKey
String getKey(String key)
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
default String getValue(String value)
The logic to upgrade the setting value.- Parameters:
value- the setting value to upgrade- Returns:
- the upgraded setting value
-
-