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 java.lang.String
getKey(java.lang.String key)
The logic to upgrade the setting key, for example by mapping the old setting key to the new setting key.default java.util.List<java.lang.String>
getListValue(java.util.List<java.lang.String> value)
Setting<T>
getSetting()
The setting upgraded by this upgrader.default java.lang.String
getValue(java.lang.String value)
The logic to upgrade the setting value.
-
-
-
Method Detail
-
getKey
java.lang.String getKey(java.lang.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 java.lang.String getValue(java.lang.String value)
The logic to upgrade the setting value.- Parameters:
value
- the setting value to upgrade- Returns:
- the upgraded setting value
-
getListValue
default java.util.List<java.lang.String> getListValue(java.util.List<java.lang.String> value)
-
-