StateCapable

interface StateCapable<S : Any>

Interface for entities that maintain a state of a specific type.

This interface provides access to the current state of an aggregate or entity, where the state represents the business data and can be of any type.

Parameters

S

The type of the state data.

Inheritors

Properties

Link copied to clipboard
abstract val state: S

The current state of the aggregate.