Interface Setting.SettingDependency

All Known Subinterfaces:
Setting.AffixSettingDependency
Enclosing class:
Setting<T>

public static interface Setting.SettingDependency
Allows a setting to declare a dependency on another setting being set. Optionally, a setting can validate the value of the dependent setting.
  • Method Summary

    Modifier and Type
    Method
    Description
    The setting to declare a dependency on.
    default void
    validate​(String key, Object value, Object dependency)
    Validates the dependent setting value.
  • Method Details

    • getSetting

      Setting<?> getSetting()
      The setting to declare a dependency on.
      Returns:
      the setting
    • validate

      default void validate(String key, Object value, Object dependency)
      Validates the dependent setting value.
      Parameters:
      key - the key for this setting
      value - the value of this setting
      dependency - the value of the dependent setting