# Package-level declarations

## Types

KeyValueFromKeyValuesRepo
Link copied to clipboard
open class KeyValueFromKeyValuesRepo < Key , Value >(original: KeyValuesRepo < Key , Value >) : KeyValueRepo < Key , List < Value >> , ReadKeyValueFromKeyValuesRepo < Key , Value >

Full read-write adapter that exposes a KeyValuesRepo as a KeyValueRepo mapping each key to a List of values. Extends ReadKeyValueFromKeyValuesRepo with write operations delegated to the underlying KeyValuesRepo. onNewValue merges KeyValuesRepo.onNewValue and KeyValuesRepo.onValueRemoved and emits the updated list per key; onValueRemoved mirrors KeyValuesRepo.onDataCleared.

ReadKeyValueFromCRUDRepo
Link copied to clipboard
@ JvmInline
value class ReadKeyValueFromCRUDRepo < Key , Value >(original: ReadCRUDRepo < Value , Key >) : ReadKeyValueRepo < Key , Value >

Inline value class adapter that exposes a ReadCRUDRepo as a ReadKeyValueRepo. Maps key-value read operations to the underlying CRUD repository operations, treating CRUD IDs as keys and CRUD objects as values.

ReadKeyValueFromKeyValuesRepo
Link copied to clipboard
open class ReadKeyValueFromKeyValuesRepo < Key , Value >(original: ReadKeyValuesRepo < Key , Value >) : ReadKeyValueRepo < Key , List < Value >>

Adapter that exposes a ReadKeyValuesRepo as a ReadKeyValueRepo mapping each key to a List of values. Each key's associated list of values is retrieved via ReadKeyValuesRepo.getAll.

## Functions

asKeyValueRepo
Link copied to clipboard
fun < K , V > KeyValuesRepo < K , V >. asKeyValueRepo (): KeyValueFromKeyValuesRepo < K , V >

Wraps this KeyValuesRepo as a KeyValueFromKeyValuesRepo, exposing a full read-write key-value interface where each key maps to a List of values.

asReadKeyValueRepo
Link copied to clipboard
fun < K , V > ReadCRUDRepo < K , V >. asReadKeyValueRepo (): ReadKeyValueFromCRUDRepo < V , K >

Wraps this ReadCRUDRepo as a ReadKeyValueFromCRUDRepo, exposing CRUD IDs as keys and CRUD objects as values in a ReadKeyValueRepo.

fun < K , V > ReadKeyValuesRepo < K , V >. asReadKeyValueRepo (): ReadKeyValueFromKeyValuesRepo < K , V >

Wraps this ReadKeyValuesRepo as a ReadKeyValueFromKeyValuesRepo, exposing each key mapped to a List of all associated values.