Size

The element must be in between specified limits. Supported types:

  • String
  • Array
  • Collection
  • Map

Constructors

Size
Link copied to clipboard
fun Size(min: Int = 0, max: Int = Int.MAX_VALUE, message: String = "")

Types

List
Link copied to clipboard
Defines multiple Size annotations on a single element.

Properties

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