apply Diff
Applies the difference between this map and a ReadCRUDRepo to this map. Modifies this mutable map to match the state of the repository.
Parameters
The repository to synchronize with
Type Parameters
The type of IDs
The type of objects
Applies the given diff to this KeyValueRepo: removes entries in MapDiff.removed, updates entries in MapDiff.changed, and adds entries in MapDiff.added.
Parameters
The diff to apply
Type Parameters
The type of keys
The type of values
Computes the diff between this KeyValueRepo and other, then applies the diff to this repo.
Parameters
The target map state to synchronize to
Type Parameters
The type of keys
The type of values
Computes the diff between this MutableMap and the given ReadKeyValueRepo, then applies the diff to this map.
Parameters
The repository whose state to synchronize to
Type Parameters
The type of keys
The type of values
Applies the given diff to this KeyValuesRepo: clears keys in MapDiff.removed, sets entries in MapDiff.changed and MapDiff.added.
Parameters
The diff to apply
Type Parameters
The type of keys
The type of values
Computes the diff between this KeyValuesRepo and other, then applies the diff to this repo.
Parameters
The target map state to synchronize to
Type Parameters
The type of keys
The type of values
Computes the diff between this MutableMap and the given ReadKeyValuesRepo, then applies the diff to this map.
Parameters
The repository whose state to synchronize to
Type Parameters
The type of keys
The type of values