RegistryKey

interface RegistryKey<T>(source)

A key that is used to retrieve a value of type T from a ProviderRegistry.

Registry keys serve as type-safe identifiers for values stored in registries. Each key has an associated context that determines how equality and hashing are computed.

Type Parameters

T

The type of the value associated with this key.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Key context that describes equality between this key and other keys.

Link copied to clipboard

Registry of keys that can be implied from this key.

Link copied to clipboard

Provides an implication for this registry key that includes all keys implied by it.

Link copied to clipboard

Provides an implication for this registry key that includes all keys implied by it, using the first encountered mapping for each implied key.

Functions

Link copied to clipboard
context(registry: MutableProviderRegistry)
infix fun <T> RegistryKey<in T>.correspondsTo(provider: RegisteredValueProvider<T>)

DSL function to associate this registry key with a provider in the context registry.

context(registry: MutableRegistry)
infix fun <T> RegistryKey<in T>.correspondsTo(value: T)

DSL function to associate this registry key with a value in the context registry.