Interface RangeAdjuster

All Known Implementing Classes:
RangeAdjuster.ForMax, RangeAdjuster.ForMin

@InternalApi public interface RangeAdjuster
Provides support for auto-adjusting 'range' settings that have a min and a max value.
Since:
1.1.10
  • Field Details

  • Method Details

    • adjustRange

      <T extends Number & Comparable<T>> void adjustRange(Settings settings, SettingKey key, T otherValue)
      Adjust given key based on otherValue.

      For example, if min is set to a value higher than the max, will auto-adjust max by a specified amount (and vice versa).

      Type Parameters:
      T - numeric type
      Parameters:
      settings - to update
      key - to update
      otherValue - based on which to update given setting key