Class RangeAdjuster.ForMin

    • Method Detail

      • adjustRange

        public <T extends Number & Comparable<T>> void adjustRange​(Settings settings,
                                                                   SettingKey minSetting,
                                                                   T newMax)
        Description copied from interface: RangeAdjuster
        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).

        Specified by:
        adjustRange in interface RangeAdjuster
        Type Parameters:
        T - numeric type
        Parameters:
        settings - to update
        minSetting - to update
        newMax - based on which to update given setting key