with Mapper
Wraps this ReadCRUDRepo with a mapper to expose different key and value types.
Return
A mapped repository with the new type system
Parameters
The mapper defining the type conversions
Type Parameters
The desired external ID type
The desired external object type
The current internal ID type
The current internal object type
Wraps this ReadCRUDRepo with custom conversion functions for keys and values.
Return
A mapped repository with the new type system
Parameters
Converts external keys to internal keys
Converts external values to internal values
Converts internal keys to external keys
Converts internal values to external values
Type Parameters
The desired external ID type
The desired external object type
The current internal ID type
The current internal object type
Wraps this ReadKeyValueRepo with a MapperRepo to expose a mapped ReadKeyValueRepo.
Return
MapperReadKeyValueRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this ReadKeyValueRepo with inline conversion lambdas to expose a mapped ReadKeyValueRepo.
Return
MapperReadKeyValueRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this WriteKeyValueRepo with a MapperRepo to expose a mapped WriteKeyValueRepo.
Return
MapperWriteKeyValueRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this WriteKeyValueRepo with inline conversion lambdas to expose a mapped WriteKeyValueRepo.
Return
MapperWriteKeyValueRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this KeyValueRepo with a MapperRepo to expose a mapped KeyValueRepo.
Return
MapperKeyValueRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this KeyValueRepo with inline conversion lambdas to expose a mapped KeyValueRepo.
Return
MapperKeyValueRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this ReadKeyValuesRepo with a MapperRepo to expose a mapped ReadKeyValuesRepo.
Return
MapperReadKeyValuesRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this ReadKeyValuesRepo with inline conversion lambdas to expose a mapped ReadKeyValuesRepo.
Return
MapperReadKeyValuesRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this WriteKeyValuesRepo with a MapperRepo to expose a mapped WriteKeyValuesRepo.
Return
MapperWriteKeyValuesRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this WriteKeyValuesRepo with inline conversion lambdas to expose a mapped WriteKeyValuesRepo.
Return
MapperWriteKeyValuesRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this KeyValuesRepo with a MapperRepo to expose a mapped KeyValuesRepo.
Return
MapperKeyValuesRepo wrapping this repo
Parameters
The MapperRepo providing bidirectional type conversions
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type
Wraps this KeyValuesRepo with inline conversion lambdas to expose a mapped KeyValuesRepo.
Return
MapperKeyValuesRepo wrapping this repo
Parameters
Converts outer key to inner key; defaults to unchecked cast
Converts outer value to inner value; defaults to unchecked cast
Converts inner key to outer key; defaults to unchecked cast
Converts inner value to outer value; defaults to unchecked cast
Type Parameters
The outer key type
The outer value type
The inner key type
The inner value type