Type of keys for the Replicated Map
Type of values for the Replicated Map
Generator for default values.
Check whether this map contains a value of the given key.
The key to check
True if this map contains a value of the given key
Execute the given callback for each element.
The callback to handle each element
Return an (iterable) iterator of the entries of this map.
(iterable) iterator of map entries
Return an iterator of the entries of this map.
iterator of map entries
Return an iterator of the values of this map.
iterator of map values
Return an iterator of the keys of this map.
iterator of map keys
Get the value at the given key.
The key to get
The Replicated Data value, or undefined if no value is defined at that key
Set the given value for the given key.
The key to set
The value to set
This map
Delete the value at the given key.
The key to delete.
This map
Clear all entries from this map.
This map
The number of entries in this map.
A representation of this map as an object.
Generated using TypeDoc
A Replicated Map data type.
ReplicatedMaps are a mapping of keys (which can be any Serializable) to Replicated Data types. Values of the map are merged together. Elements can be added and removed, however, when an element is removed and then added again, it's possible that the old value will be merged with the new, depending on whether the remove was replicated to all nodes before the add was.
Note that while the map may contain different types of Replicated Data for different keys, a given key may not change its type, and doing so will likely result in the Replicated Data entering a non mergable state, from which it can't recover.