# Package-level declarations

## Functions

applyDiff
Link copied to clipboard
suspend fun < Id , Registered > KeyValueRepo < Id , Registered >. applyDiff (diff: MapDiff < Id , Registered >)

Applies the given diff to this KeyValueRepo: removes entries in MapDiff.removed, updates entries in MapDiff.changed, and adds entries in MapDiff.added.

suspend fun < Id , Registered > KeyValueRepo < Id , Registered >. applyDiff (other: Map < Id , Registered >)

Computes the diff between this KeyValueRepo and other, then applies the diff to this repo.

suspend fun < Id , Registered > KeyValuesRepo < Id , Registered >. applyDiff (diff: MapDiff < Id , List < Registered >>)

Applies the given diff to this KeyValuesRepo: clears keys in MapDiff.removed, sets entries in MapDiff.changed and MapDiff.added.

suspend fun < Id , Registered > KeyValuesRepo < Id , Registered >. applyDiff (other: Map < Id , List < Registered >>)

Computes the diff between this KeyValuesRepo and other, then applies the diff to this repo.

suspend fun < Id , Registered > MutableMap < Id , Registered >. applyDiff (other: ReadCRUDRepo < Registered , Id >)

Applies the difference between this map and a ReadCRUDRepo to this map. Modifies this mutable map to match the state of the repository.

suspend fun < Id , Registered > MutableMap < Id , Registered >. applyDiff (other: ReadKeyValueRepo < Id , Registered >)

Computes the diff between this MutableMap and the given ReadKeyValueRepo, then applies the diff to this map.

suspend fun < Id , Registered > MutableMap < Id , List < Registered >>. applyDiff (other: ReadKeyValuesRepo < Id , Registered >)

Computes the diff between this MutableMap and the given ReadKeyValuesRepo, then applies the diff to this map.

diff
Link copied to clipboard
suspend fun < Id , Registered > ReadCRUDRepo < Registered , Id >. diff (other: Map < Id , Registered >): MapDiff < Id , Registered >

Computes the difference between this ReadCRUDRepo and a map of items. Retrieves all items from the repository and compares them with the provided map.

suspend fun < Id , Registered > ReadKeyValueRepo < Id , Registered >. diff (other: Map < Id , Registered >): MapDiff < Id , Registered >

Computes the difference between all entries in this ReadKeyValueRepo and the given other map.

suspend fun < Id , Registered > ReadKeyValuesRepo < Id , Registered >. diff (other: Map < Id , List < Registered >>): MapDiff < Id , List < Registered >>

Computes the difference between all entries in this ReadKeyValuesRepo and the given other map.

suspend fun < Id , Registered > Map < Id , Registered >. diff (other: ReadCRUDRepo < Registered , Id >): MapDiff < Id , Registered >

Computes the difference between this map and a ReadCRUDRepo. Retrieves all items from the repository and compares them with this map.

suspend fun < Id , Registered > Map < Id , Registered >. diff (other: ReadKeyValueRepo < Id , Registered >): MapDiff < Id , Registered >

Computes the difference between this map and all entries in the given ReadKeyValueRepo.

suspend fun < Id , Registered > Map < Id , List < Registered >>. diff (other: ReadKeyValuesRepo < Id , Registered >): MapDiff < Id , List < Registered >>

Computes the difference between this map and all entries in the given ReadKeyValuesRepo.