toggle menu
neat-validation
3.1.0
common
switch theme
search in API
neat-validation
/
neat.collections
/
size
size
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
val
<
T
:
Collection
<
*
>
>
Validator
<
T
>
.
size
:
Int
?