format source with scalafmt, #26511
This commit is contained in:
parent
2ba9b988df
commit
75579bed17
779 changed files with 15729 additions and 13096 deletions
|
|
@ -68,9 +68,10 @@ object ORMap {
|
|||
|
||||
// PutDeltaOp contains ORSet delta and full value
|
||||
/** INTERNAL API */
|
||||
@InternalApi private[akka] final case class PutDeltaOp[A, B <: ReplicatedData](underlying: ORSet.DeltaOp,
|
||||
value: (A, B),
|
||||
zeroTag: ZeroTag)
|
||||
@InternalApi private[akka] final case class PutDeltaOp[A, B <: ReplicatedData](
|
||||
underlying: ORSet.DeltaOp,
|
||||
value: (A, B),
|
||||
zeroTag: ZeroTag)
|
||||
extends AtomicDeltaOp[A, B] {
|
||||
override def merge(that: DeltaOp): DeltaOp = that match {
|
||||
case put: PutDeltaOp[A, B] if this.value._1 == put.value._1 =>
|
||||
|
|
@ -93,9 +94,10 @@ object ORMap {
|
|||
|
||||
// UpdateDeltaOp contains ORSet delta and either delta of value (in case where underlying type supports deltas) or full value
|
||||
/** INTERNAL API */
|
||||
@InternalApi private[akka] final case class UpdateDeltaOp[A, B <: ReplicatedData](underlying: ORSet.DeltaOp,
|
||||
values: Map[A, B],
|
||||
zeroTag: ZeroTag)
|
||||
@InternalApi private[akka] final case class UpdateDeltaOp[A, B <: ReplicatedData](
|
||||
underlying: ORSet.DeltaOp,
|
||||
values: Map[A, B],
|
||||
zeroTag: ZeroTag)
|
||||
extends AtomicDeltaOp[A, B] {
|
||||
override def merge(that: DeltaOp): DeltaOp = that match {
|
||||
case update: UpdateDeltaOp[A, B] =>
|
||||
|
|
@ -117,15 +119,17 @@ object ORMap {
|
|||
|
||||
// RemoveDeltaOp does not contain any value at all - the propagated 'value' map would be empty
|
||||
/** INTERNAL API */
|
||||
@InternalApi private[akka] final case class RemoveDeltaOp[A, B <: ReplicatedData](underlying: ORSet.DeltaOp,
|
||||
zeroTag: ZeroTag)
|
||||
@InternalApi private[akka] final case class RemoveDeltaOp[A, B <: ReplicatedData](
|
||||
underlying: ORSet.DeltaOp,
|
||||
zeroTag: ZeroTag)
|
||||
extends AtomicDeltaOp[A, B]
|
||||
|
||||
// RemoveKeyDeltaOp contains a single value - to provide the recipient with the removed key for value map
|
||||
/** INTERNAL API */
|
||||
@InternalApi private[akka] final case class RemoveKeyDeltaOp[A, B <: ReplicatedData](underlying: ORSet.DeltaOp,
|
||||
removedKey: A,
|
||||
zeroTag: ZeroTag)
|
||||
@InternalApi private[akka] final case class RemoveKeyDeltaOp[A, B <: ReplicatedData](
|
||||
underlying: ORSet.DeltaOp,
|
||||
removedKey: A,
|
||||
zeroTag: ZeroTag)
|
||||
extends AtomicDeltaOp[A, B]
|
||||
|
||||
// DeltaGroup is effectively a causally ordered list of individual deltas
|
||||
|
|
@ -169,10 +173,11 @@ object ORMap {
|
|||
* This class is immutable, i.e. "modifying" methods return a new instance.
|
||||
*/
|
||||
@SerialVersionUID(1L)
|
||||
final class ORMap[A, B <: ReplicatedData] private[akka] (private[akka] val keys: ORSet[A],
|
||||
private[akka] val values: Map[A, B],
|
||||
private[akka] val zeroTag: ZeroTag,
|
||||
override val delta: Option[ORMap.DeltaOp] = None)
|
||||
final class ORMap[A, B <: ReplicatedData] private[akka] (
|
||||
private[akka] val keys: ORSet[A],
|
||||
private[akka] val values: Map[A, B],
|
||||
private[akka] val zeroTag: ZeroTag,
|
||||
override val delta: Option[ORMap.DeltaOp] = None)
|
||||
extends DeltaReplicatedData
|
||||
with ReplicatedDataSerialization
|
||||
with RemovedNodePruning {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue