SmallMaterializedSnapshot
Represents a simplified materialized snapshot with generic state. This data class implements multiple interfaces to provide version, materialization, first event time, and state information.
Parameters
The version of the snapshot, used to indicate the version of the state.
The timestamp of the first event, used to record when the state was first changed.
The current state, with a generic type.
Properties
A computed property that indicates whether the entity has been initialized. Returns true if the version is greater than UNINITIALIZED_VERSION. This property is ignored during JSON serialization.
A computed property that indicates whether the entity is at its initial version. Returns true if the version equals INITIAL_VERSION. This property is ignored during JSON serialization.