toggle menu
akkurate
common
switch theme
search in API
akkurate-core
/
dev.nesk.akkurate.constraints
Package-level
declarations
Types
Functions
Types
Constraint
Link copied to clipboard
class
Constraint
(
val
satisfied
:
Boolean
,
var
validatable
:
Validatable
<
*
>
)
:
ConstraintDescriptor
Constraint
Descriptor
Link copied to clipboard
interface
ConstraintDescriptor
Constraint
Violation
Link copied to clipboard
class
ConstraintViolation
:
ConstraintDescriptor
Constraint
Violation
Set
Link copied to clipboard
class
ConstraintViolationSet
:
Set
<
ConstraintViolation
>
Functions
constrain
Link copied to clipboard
inline
fun
<
T
>
Validatable
<
T
>
.
constrain
(
block
:
(
value
:
T
)
->
Boolean
)
:
Constraint
constrain
If
Not
Null
Link copied to clipboard
inline
fun
<
T
>
Validatable
<
T
?
>
.
constrainIfNotNull
(
block
:
(
value
:
T
)
->
Boolean
)
:
Constraint
otherwise
Link copied to clipboard
infix inline
fun
Constraint
.
otherwise
(
block
:
(
)
->
String
)
:
Constraint
with
Path
Link copied to clipboard
infix inline
fun
Constraint
.
withPath
(
block
:
PathBuilder
.
(
Path
)
->
Path
)
:
Constraint