Validator

constructor(property: KProperty<T>, validate: (T) -> ValidationInfo?)(source)

Parameters

T

the type of property

validate

the method by which the property is validated, which returns null if the property is valid, and returns ValidationInfo otherwise