Konstant
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Konstant
konstant-annotations
/
io.github.fiol_dev.konstant.annotations
/
Size
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.
Members
Properties
max
Link copied to clipboard
val
max
:
Int
min
Link copied to clipboard
val
min
:
Int
=
0