viewtify.preference
Preferences.DoublePreference
PreferenceDoublekiss.VariableDouble
Preference value for primitive double.
require(FunctionDouble, Doublerequirement)DoublePreference
FunctionDouble, Doublerequirement)Functionrequirement |
|
DoublePreference |
Chainable API. |
Add requirement on this preference.
requireMax(doublemax)DoublePreference
doublemax)doublemax |
A maximum value. |
DoublePreference |
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(doublemin)DoublePreference
doublemin)doublemin |
A minimum value. |
DoublePreference |
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(doublemin, doublemax)DoublePreference
doublemin, doublemax)doublemin |
A minimum value. |
doublemax |
A maximum value. |
DoublePreference |
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.
getAsDouble()double
double |