Range

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Range(val min: Long = Long.MIN_VALUE, val max: Long = Long.MAX_VALUE)

Validates that the property value is within the specified min and max range.

Properties

Link copied to clipboard
val max: Long

the maximum allowed value (inclusive)

Link copied to clipboard
val min: Long

the minimum allowed value (inclusive)