mutators

lofi_acl.ardt.datatypes.AddWinsMap$package.AddWinsMap.mutators
object mutators

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
mutators.type

Members list

Value members

Concrete methods

def clear[K, V : Bottom](map: AddWinsMap[K, V]): AddWinsMap[K, V]

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

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

Type parameters

K

The type of the key

V

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

Value parameters

map

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

Attributes

Returns

The delta that contains the removal of all mappings

def remove[K, V : HasDots](key: K, map: AddWinsMap[K, V]): AddWinsMap[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.

Type parameters

K

The type of the key

V

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

Value parameters

key

The key to remove

map

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

Attributes

Returns

The delta that contains the removal (and nothing else)