Raptor Aggregate Projection Event
data class RaptorAggregateProjectionEvent<out ProjectionId : RaptorAggregateProjectionId, out Projection : RaptorProjection<ProjectionId>, out Change : RaptorAggregateChange<ProjectionId>>(val change: Change, val id: RaptorAggregateEventId, val previousProjection: Projection? = null, val projection: Projection?, val timestamp: Timestamp, val version: Int, val lastVersionInBatch: Int = version) : RaptorEntity<RaptorAggregateEventId>
Constructors
Link copied to clipboard
fun <out Projection : RaptorProjection<ProjectionId>, out Change : RaptorAggregateChange<ProjectionId>> RaptorAggregateProjectionEvent(change: Change, id: RaptorAggregateEventId, previousProjection: Projection? = null, projection: Projection?, timestamp: Timestamp, version: Int, lastVersionInBatch: Int = version)
Properties
Extensions
Link copied to clipboard
fun <Id : RaptorAggregateProjectionId, Projection : RaptorProjection<Id>, Change : RaptorAggregateChange<Id>> RaptorAggregateProjectionEvent<*, *, *>.castOrNull(idClass: KClass<Id>, projectionClass: KClass<Projection>, changeClass: KClass<Change>): RaptorAggregateProjectionEvent<Id, Projection, Change>?
Link copied to clipboard
fun <Id : RaptorAggregateProjectionId, Projection : RaptorProjection<Id>, Change : RaptorAggregateChange<Id>> RaptorAggregateProjectionEvent<Id, Projection, *>.withChangeOrNull(changeClass: KClass<Change>): RaptorAggregateProjectionEvent<Id, Projection, Change>?