E
- all events generated for this aggregateA
- the aggregate type@FunctionalInterface public interface Aggregator<E,A>
Modifier and Type | Method and Description |
---|---|
A |
applyEvent(A currentAggregate,
E event)
A function that takes the current aggregate value, the latest event and generates a new aggregate value.
|
A applyEvent(A currentAggregate, E event)
InitialValue
is used to create the starting value.currentAggregate
- the current aggregate value for this aggregateevent
- the latest event to apply to this aggregateCopyright © 2019. All rights reserved.