StateValidator

fun interface StateValidator<T>

Interface for validating state objects.

State validators are responsible for enforcing business rules and constraints on state objects before they are accepted as valid states.

Parameters

T

The type of state being validated

Inheritors

Functions

Link copied to clipboard
abstract fun validate(state: T): ValidationResult

Validates the given state.