StateCapable
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.