Package org.instancio.internal.settings
Interface AutoAdjustable
- All Known Implementing Classes:
InternalKey
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 TypeMethodDescription<N extends Number & Comparable<N>>
voidautoAdjust(@NotNull Settings settings, N otherValue) Auto-adjusts theSettingsvalue 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 theSettingsvalue for this key based on the value of another setting key.- Type Parameters:
N- a comparable number- Parameters:
settings- to adjustotherValue- value of the other setting to base the adjustment off- Since:
- 2.11.0
-