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

    • getSetting

      Setting<T> getSetting()
      The setting upgraded by this upgrader.
      Returns:
      the setting
    • getKey

       getKey( 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  getValue( value)
      The logic to upgrade the setting value.
      Parameters:
      value - the setting value to upgrade
      Returns:
      the upgraded setting value
    • getListValue

      default <> getListValue(<> value)