viewtify

viewtify.preference

Preferences.ComparablePreference<V>

Preference value for Comparable.

ComparablePreference(VdefaultValue)

VdefaultValue

Hide constructor.

require(FunctionV, Vrequirement)ComparablePreferenceV

FunctionV, Vrequirement
ComparablePreferenceV

Chainable API.

Add requirement on this preference.

requireMax(Vmax)ComparablePreferenceV

Vmax

A maximum value.

ComparablePreferenceV

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

A minimum value.

ComparablePreferenceV

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

A minimum value.

Vmax

A maximum value.

ComparablePreferenceV

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.