Package-level declarations

Properties

Link copied to clipboard
val <T : Collection<*>> Validator<T>.max: Int?
Link copied to clipboard
val <T : Collection<*>> Validator<T>.min: Int?
Link copied to clipboard
val <T : Collection<*>> Validator<T>.size: Int?

Functions

Link copied to clipboard
fun <T : Collection<*>, V : Validators<T>> V.max(value: Int, message: (T) -> String = { "$label collection should have less than $value item(s), but has ${it.size} item(s) instead" }): V
Link copied to clipboard
fun <T : Collection<*>, V : Validators<T>> V.min(value: Int, message: (T) -> String = { "$label collection should have more than $value item(s), but has ${it.size} items(s) instead" }): V
Link copied to clipboard
fun <T : Collection<*>, V : Validators<T>> V.size(value: Int, message: (T) -> String = { "$label collection should have $value item(s), but has ${it.size} items(s) instead" }): V