RegistrySerializableKey

A RegistryKey that has an associated KSerializer for serialization.

Keys implementing this interface can be used with the registry serializers to enable automatic serialization and deserialization of registry values.

Type Parameters

T

The type of value associated with this key.

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
abstract val serializer: KSerializer<T>

The KSerializer used to serialize and deserialize values associated with 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.