isFromToInclusive

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

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

Return

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

Parameters

value

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

fromValue

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

toValue

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


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

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

Return

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

Parameters

value

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

fromValue

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

toValue

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