StateT
- The type of the object being updatedpublic interface Update<StateT extends Revisioned>
StateSynchronizer
.Modifier and Type | Method and Description |
---|---|
StateT |
applyTo(StateT oldState,
Revision newRevision)
Return an object of type StateT that is the same as oldState with this update applied to it.
|
StateT applyTo(StateT oldState, Revision newRevision)
Revisioned.getRevision()
on the result should return newRevision.oldState
- The state to which should be used as the basis for the new state.newRevision
- The revision for the new state.