Interface RangeAdjuster

    • Method Detail

      • 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