isFromTo

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

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

Return

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

Parameters

value

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

fromValue

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

toValue

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


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

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

Return

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

Parameters

value

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

fromValue

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

toValue

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