viewtify.preference
Preferences.ComparablePreference<V>
V>Preference value for Comparable.
ComparablePreference(VdefaultValue)
VdefaultValue)VdefaultValue |
Hide constructor.
require(FunctionV, Vrequirement)ComparablePreferenceV
FunctionV, Vrequirement)VFunctionrequirement |
|
ComparablePreference |
Chainable API. |
Add requirement on this preference.
requireMax(Vmax)ComparablePreferenceV
Vmax)VVmax |
A maximum value. |
ComparablePreference |
Chainable API. |
This is the maximum value that can be set. If it is greater than this value, this maximum value will be set instead.
requireMin(Vmin)ComparablePreferenceV
Vmin)VVmin |
A minimum value. |
ComparablePreference |
Chainable API. |
This is the minimum value that can be set. If it is less than this value, this minimum value will be set instead.
requireBetween(Vmin, Vmax)ComparablePreferenceV
Vmin, Vmax)VVmin |
A minimum value. |
Vmax |
A maximum value. |
ComparablePreference |
Chainable API. |
The range of possible values. If a value outside this range is set, the closest value to this range will be set instead.