public static CommandResponse of(final CommandResult<?> result) { return new CommandResponse( result.getAggregateId(), result.getPreviousVersion(), result.getNewVersion(), result.getEvents() == null || result.getEvents().isEmpty()); }
public static CommandResponse of(final CommandResult<?> result) { return new CommandResponse( result.getAggregateId(), result.getPreviousVersion(), result.getNewVersion(), result.getEvents() == null || result.getEvents().isEmpty()); }