applyEvent

abstract fun applyEvent(event: EVENT, state: STATE?): STATE?

Apply the EVENT to the aggregate/projection/view STATE instance

Note: This method is called evolve in the decider pattern

Return

the new aggregate/projection/view STATE (after the EVENT has been applied / projected onto the current aggregate/projection/view STATE)

Parameters

event

the EVENT to be applied / projected onto the current aggregate/projection/view STATE

state

the current STATE of the aggregate/projection/view