Size

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

The String's length, or the List, Set or Map's size, must be within min..max, inclusive.

Properties

Link copied to clipboard
val max: Int
Link copied to clipboard
val min: Int = 0