evolveStep

abstract fun evolveStep(currentState: STATE?, committedEvent: CommittedEvent<EVENT>): STATE(source)

Return

The new state of the aggregate.

Parameters

currentState

The current state of the aggregate (null if the event is an initial event).

committedEvent

The event to apply.