Package-level declarations
Provides basic property state tests, which are (assumed to be) commonly used:
Always correct.
Not
null.Range checks for numbers (
Int,Long,FloatandDouble).
Functions
Link copied to clipboard
If there are no rules a value has to comply with, use this function to obtain state com.zybber.to_state.Correct for it.
Link copied to clipboard
fun isFromInclusiveToInclusive(value: Double, validRange: ClosedFloatingPointRange<Double>): PropertyState<Double>
Check if the Double value is within a range (inclusive).
fun isFromInclusiveToInclusive(value: Float, validRange: ClosedFloatingPointRange<Float>): PropertyState<Float>
Check if the Float value is within a range (inclusive).