Tachyon Annotations (krpc-annotations)
/
org.brightify.hyperdrive.krpc.api.validation
/
Size
Size
@
Target
(
allowedTargets = [
AnnotationTarget.FUNCTION
,
AnnotationTarget.FIELD
,
AnnotationTarget.ANNOTATION_CLASS
,
AnnotationTarget.CONSTRUCTOR
,
AnnotationTarget.VALUE_PARAMETER
]
)
annotation class
Size
(min:
Int
, max:
Int
, message:
String
)
Content copied to clipboard
The element must be in between specified limits. Supported types:
String
Array
Collection
Map
Types
Constructors
Properties
Constructors
Size
Link copied to clipboard
fun
Size
(min:
Int
= 0, max:
Int
= Int.MAX_VALUE, message:
String
= "")
Content copied to clipboard
Types
List
Link copied to clipboard
@
Target
(
allowedTargets = [
AnnotationTarget.FUNCTION
,
AnnotationTarget.FIELD
,
AnnotationTarget.ANNOTATION_CLASS
,
AnnotationTarget.CONSTRUCTOR
,
AnnotationTarget.VALUE_PARAMETER
]
)
annotation class
List
(value:
Array
<
Size
>)
Content copied to clipboard
Defines multiple
Size
annotations on a single element.
Properties
max
Link copied to clipboard
val
max
:
Int
Content copied to clipboard
message
Link copied to clipboard
val
message
:
String
Content copied to clipboard
min
Link copied to clipboard
val
min
:
Int
= 0
Content copied to clipboard