set

operator fun <T> MutableRegistry.set(registryImplication: ProviderRegistryImplication<T>, value: T)(source)

Sets all key-value pairs from a ProviderRegistryImplication into this registry.

This copies all associations (both the original key and implied keys) from the implication, using the provided concrete value as the source.

Receiver

The MutableRegistry to set the key-value pairs into.

Parameters

registryImplication

The ProviderRegistryImplication containing the keys and mappings to set.

value

The concrete value of type T to use as the source.

Type Parameters

T

The type of the source value from which implications are derived.


operator fun <T> MutableProviderRegistry.set(registryImplication: ProviderRegistryImplication<T>, provider: RegisteredValueProvider<T>)(source)

Sets all key-value pairs from a ProviderRegistryImplication into this provider registry.

This copies all associations (both the original key and implied keys) from the implication, using the provided provider as the source.

Receiver

The MutableProviderRegistry to set the key-value pairs into.

Parameters

registryImplication

The ProviderRegistryImplication containing the keys and mappings to set.

provider

The RegisteredValueProvider of type T that supplies the source value.

Type Parameters

T

The type of the source value from which implications are derived.