Size

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Size(val min: Int = 0, val max: Int = Int.MAX_VALUE)

Validates that the size of the collection property is within the specified min and max range.

Properties

Link copied to clipboard
val max: Int

the maximum allowed size (inclusive)

Link copied to clipboard
val min: Int = 0

the minimum allowed size (inclusive)