viewtify.preference
Preferences.LongPreference
Preference
Long
kiss.Variable
Long
Preference value for primitive long.
require
(FunctionLong
, Long
requirement
)
LongPreference
FunctionLong
, Long
requirement
)Function requirement |
|
LongPreference |
Chainable API. |
Add requirement on this preference.
requireMax
(long
max
)
LongPreference
long
max
)long max |
A maximum value. |
LongPreference |
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
(long
min
)
LongPreference
long
min
)long min |
A minimum value. |
LongPreference |
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
(long
min
, long
max
)
LongPreference
long
min
, long
max
)long min |
A minimum value. |
long max |
A maximum value. |
LongPreference |
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.
getAsLong
()
long
long |