Mapper Write Key Values Repo
Write-only one-to-many key-values repository adapter that applies type mapping via MapperRepo. Converts outer (From) key/value types to inner (To) types before delegating writes to to, and maps emitted flow values back from inner to outer types.
Parameters
The underlying WriteKeyValuesRepo to delegate operations to
The MapperRepo providing bidirectional key/value type conversions
Type Parameters
The outer key type exposed by this repo
The outer value type exposed by this repo
The inner key type used by the underlying to repo
The inner value type used by the underlying to repo
Constructors
Properties
Provides a mapper for converting keys between inner and outer types.
Flow that emits when all data for a key is cleared.
Flow that emits when a new value is added to a key.
Flow that emits when a value is removed from a key.
Provides a mapper for converting values between inner and outer types.
Functions
Single-key overload of WriteKeyValuesRepo.add accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.add.
Clears a specific value from all keys and removes those keys if they become empty.
List-of-pairs overload of WriteKeyValuesRepo.remove.
Vararg overload of WriteKeyValuesRepo.remove.
Single-key overload of WriteKeyValuesRepo.remove accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.remove.
Removes a specific value from all keys that contain it, without clearing all data for those keys.
Single-key overload of WriteKeyValuesRepo.set accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.set.
Converts a key from the outer type to the inner type.
Converts a value from the outer type to the inner type.
Converts a value from the inner type to the outer type.
Wraps this WriteKeyValuesRepo with a MapperRepo to expose a mapped WriteKeyValuesRepo.
Wraps this WriteKeyValuesRepo with inline conversion lambdas to expose a mapped WriteKeyValuesRepo.