toggle menu
kotlin-stdlib-project
0.1.0-SNAPSHOT
common
switch theme
search in API
kotlin-stdlib
/
com.javiersc.kotlin.stdlib.validate
/
ValidatorScope
Validator
Scope
class
ValidatorScope
<
V
:
Any
>
Members
Types
Validatable
List
Link copied to clipboard
class
ValidatableList
<
T
>
(
val
values
:
List
<
T
>
)
:
List
<
T
>
Functions
and
Link copied to clipboard
infix
fun
<
T
>
T
.
and
(
value
:
T
)
:
ValidatorScope.ValidatableList
<
T
>
infix
fun
<
T
>
ValidatorScope.ValidatableList
<
T
>
.
and
(
value
:
T
)
:
ValidatorScope.ValidatableList
<
T
>
invalid
Link copied to clipboard
fun
invalid
(
predicate
:
(
)
->
Boolean
,
otherwise
:
(
)
->
String
)
invalid
If
Link copied to clipboard
fun
invalidIf
(
predicate
:
(
)
->
Boolean
)
invalid
If
Is
Empty
Link copied to clipboard
fun
String
.
invalidIfIsEmpty
(
otherwise
:
(
)
->
String
=
{ EmptyProperty }
)
invoke
Link copied to clipboard
operator
fun
<
T
>
T
.
invoke
(
block
:
T
.
(
)
->
Unit
)
:
T
valid
Link copied to clipboard
fun
valid
(
predicate
:
(
)
->
Boolean
,
otherwise
:
(
)
->
String
)
validation
Of
Link copied to clipboard
fun
<
T
>
validationOf
(
vararg
values
:
T
,
block
:
T
.
(
)
->
Unit
)
valid
If
Link copied to clipboard
fun
validIf
(
predicate
:
(
)
->
Boolean
)