core
0.24.4
js
core
/
de.peekandpoke.kraft.addons.forms.validation.collections
Package-level
declarations
Functions
Functions
exact
Count
Link copied to clipboard
js
fun
<
T
:
Collection
<
*
>
>
exactCount
(
count
:
Int
,
message
:
(
T
)
->
String
)
:
Rule
<
T
>
fun
<
T
:
Collection
<
*
>
>
exactCount
(
count
:
Int
,
message
:
String
=
"Must have "
)
:
Rule
<
T
>
max
Count
Link copied to clipboard
js
fun
<
T
:
Collection
<
*
>
>
maxCount
(
count
:
Int
,
message
:
(
T
)
->
String
)
:
Rule
<
T
>
fun
<
T
:
Collection
<
*
>
>
maxCount
(
count
:
Int
,
message
:
String
=
"Must have at most "
)
:
Rule
<
T
>
min
Count
Link copied to clipboard
js
fun
<
T
:
Collection
<
*
>
>
minCount
(
count
:
Int
,
message
:
(
T
)
->
String
)
:
Rule
<
T
>
fun
<
T
:
Collection
<
*
>
>
minCount
(
count
:
Int
,
message
:
String
=
"Must have at least "
)
:
Rule
<
T
>
not
Empty
Link copied to clipboard
js
fun
<
T
:
Collection
<
*
>
>
notEmpty
(
message
:
(
T
)
->
String
)
:
Rule
<
T
>
fun
<
T
:
Collection
<
*
>
>
notEmpty
(
message
:
String
=
"Must not be empty"
)
:
Rule
<
T
>