merge

open override fun merge(other: Aggregate): Aggregate

Merges this Aggregate with another, combining scopes, commands, events, and resolving conflicts.

Return

A new Aggregate containing the merged configurations.

Parameters

other

The other Aggregate to merge with.

Throws

if type conflicts are detected.