viewtify.preference
Preferences.DoublePreference
Preference
Double
kiss.Variable
Double
Preference value for primitive double.
require
(FunctionDouble
, Double
requirement
)
DoublePreference
FunctionDouble
, Double
requirement
)Function requirement |
|
DoublePreference |
Chainable API. |
Add requirement on this preference.
requireMax
(double
max
)
DoublePreference
double
max
)double max |
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
(double
min
)
DoublePreference
double
min
)double min |
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
(double
min
, double
max
)
DoublePreference
double
min
, double
max
)double min |
A minimum value. |
double max |
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 |