!cdd #17770 Use self recursive type in AbstractReplicatedData (Java API)
* complete the TwoPhaseSet java sample with serialization
This commit is contained in:
parent
49e6e7f38c
commit
da07a2e68e
9 changed files with 315 additions and 26 deletions
|
|
@ -23,7 +23,7 @@ case class TwoPhaseSet(
|
|||
|
||||
override def merge(that: TwoPhaseSet): TwoPhaseSet =
|
||||
copy(
|
||||
adds = GSet(this.adds.elements ++ that.adds.elements),
|
||||
removals = GSet(this.removals.elements ++ that.removals.elements))
|
||||
adds = this.adds.merge(that.adds),
|
||||
removals = this.removals.merge(that.removals))
|
||||
}
|
||||
//#twophaseset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue