viewtify.preference
Preferences.IntPreference
Preference
Integer
kiss.Variable
Integer
Preference value for primitive int.
require
(FunctionInteger
, Integer
requirement
)
IntPreference
FunctionInteger
, Integer
requirement
)Function requirement |
|
IntPreference |
Chainable API. |
Add requirement on this preference.
requireMax
(int
max
)
IntPreference
int
max
)int max |
A maximum value. |
IntPreference |
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
(int
min
)
IntPreference
int
min
)int min |
A minimum value. |
IntPreference |
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
(int
min
, int
max
)
IntPreference
int
min
, int
max
)int min |
A minimum value. |
int max |
A maximum value. |
IntPreference |
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.
getAsInt
()
int
int |