isFromInclusiveTo

fun isFromInclusiveTo(value: Double, fromValue: Double, toValue: Double): PropertyState<Double>(source)

Check if the Double value is within a range (inclusive from, exclusive to).

Return

property state Correct containing value if value is within the range (inclusive from, exclusive to). Otherwise Incorrect.

Parameters

value

the value that must be equal to or greater than fromValue and less than toValue.

fromValue

the lower end (inclusive) of the range value must be in.

toValue

the upper end (exclusive) of the range value must be in.


fun isFromInclusiveTo(value: Float, fromValue: Float, toValue: Float): PropertyState<Float>(source)

Check if the Float value is within a range (inclusive from, exclusive to).

Return

property state Correct containing value if value is within the range (inclusive from, exclusive to). Otherwise Incorrect.

Parameters

value

the value that must be equal to or greater than fromValue and less than toValue.

fromValue

the lower end (inclusive) of the range value must be in.

toValue

the upper end (exclusive) of the range value must be in.