ConstraintValidator

Functional contract for evaluating single field constraint rules.

Parameters

T

The type of value being validated.

Functions

Link copied to clipboard
abstract fun validate(value: T, context: ValidationContext): Boolean

Evaluates the constraint rule against the given value.