Key Values From Key Value Repo
Full read-write adapter that exposes a KeyValueRepo storing iterables as a KeyValuesRepo. Extends ReadKeyValuesFromKeyValueRepo with write operations: add, remove, clear. Emits onNewValue and onValueRemoved for individual value changes; onDataCleared mirrors KeyValueRepo.onValueRemoved.
Parameters
The underlying KeyValueRepo mapping keys to iterables of values
Converter from List of values to ValuesIterable used when persisting changes
Type Parameters
The type of keys
The type of individual values within each iterable
The iterable type storing multiple values per key
Constructors
Properties
Functions
Single-key overload of WriteKeyValuesRepo.add accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.add.
Applies the given diff to this KeyValuesRepo: clears keys in MapDiff.removed, sets entries in MapDiff.changed and MapDiff.added.
Computes the diff between this KeyValuesRepo and other, then applies the diff to this repo.
Wraps this KeyValuesRepo as a KeyValueFromKeyValuesRepo, exposing a full read-write key-value interface where each key maps to a List of values.
Wraps this ReadKeyValuesRepo as a ReadKeyValueFromKeyValuesRepo, exposing each key mapped to a List of all associated values.
Clears a specific value from all keys and removes those keys if they become empty.
Computes the difference between all entries in this ReadKeyValuesRepo and the given other map.
Retrieves a paginated list of values associated with the given key.
Retrieves a paginated list of keys.
Retrieves keys that have the specified value associated with them.
Creates a pagination starting from the first page with size equal to the total count of items in this ReadKeyValuesRepo. This effectively creates a single page containing all items.
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.
Wraps this KeyValuesRepo with a MapperRepo to expose a mapped KeyValuesRepo.
Wraps this ReadKeyValuesRepo with a MapperRepo to expose a mapped ReadKeyValuesRepo.
Wraps this WriteKeyValuesRepo with a MapperRepo to expose a mapped WriteKeyValuesRepo.
Wraps this KeyValuesRepo with inline conversion lambdas to expose a mapped KeyValuesRepo.
Wraps this ReadKeyValuesRepo with inline conversion lambdas to expose a mapped ReadKeyValuesRepo.
Wraps this WriteKeyValuesRepo with inline conversion lambdas to expose a mapped WriteKeyValuesRepo.