DeltaAddWinsMap

kofre.encrdt.crdts.DeltaAddWinsMap$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

Value members

Concrete methods

Returns the '''delta''' that removes all values from the map.

Returns the '''delta''' that removes all values from the map.

Attributes

K

The type of the key

V

The type of the value (needs to be a Delta CRDT)

map

The map on on which the removal of all mappings is performed

Returns:

The delta that contains the removal of all mappings

def deltaMutate[K, V : HasDots](key: K, default: => V, deltaMutator: Dotted[V] => Dotted[V], map: DeltaAddWinsMapLattice[K, V]): DeltaAddWinsMapLattice[K, V]

Returns the '''delta''' that contains the recursive mutation performed by the deltaMutator.

Returns the '''delta''' that contains the recursive mutation performed by the deltaMutator.

Attributes

K

The type of the key

V

The type of the value (needs to be a Delta CRDT)

deltaMutator

The delta-mutator that returns the delta of the recursive mutation

key

Key of the element that is mutated

map

The map on which the delta-mutator is applied

Returns:

The delta of the recursive delta-mutation

def deltaRemove[K, V : HasDots](key: K, map: DeltaAddWinsMapLattice[K, V]): DeltaAddWinsMapLattice[K, V]

Returns the '''delta''' of the removal of the value associated to key from the map.

Returns the '''delta''' of the removal of the value associated to key from the map.

Attributes

K

The type of the key

V

The type of the value (needs to be a Delta CRDT)

key

The key to remove

map

The map on on which the removal of the mapping is performed

Returns:

The delta that contains the removal (and nothing else)