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 Type
    Method
    Description
    The logic to upgrade the setting key, for example by mapping the old setting key to the new setting key.
    default List<String>
     
    The setting upgraded by this upgrader.
    default String
    The logic to upgrade the setting value.
  • Method Details

    • getSetting

      Setting<T> getSetting()
      The setting upgraded by this upgrader.
      Returns:
      the setting
    • 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
    • getListValue

      default List<String> getListValue(List<String> value)