Interface AutoAdjustable

All Known Implementing Classes:
InternalKey

@InternalApi public interface AutoAdjustable
Represents a setting that can be auto-adjusted based on the value of another related setting. An example would be auto-adjusting the max value of a range, when the new min value is greater than the current max value.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    <N extends Number & Comparable<N>>
    void
    autoAdjust(@NotNull Settings settings, N otherValue)
    Auto-adjusts the Settings value for this key based on the value of another setting key.
  • Method Details

    • autoAdjust

      <N extends Number & Comparable<N>> void autoAdjust(@NotNull @NotNull Settings settings, @NotNull N otherValue)
      Auto-adjusts the Settings value for this key based on the value of another setting key.
      Type Parameters:
      N - a comparable number
      Parameters:
      settings - to adjust
      otherValue - value of the other setting to base the adjustment off
      Since:
      2.11.0