SuppliedTypeRegistryKey

open class SuppliedTypeRegistryKey<T> : RegistryKey<T> (source)

Base class for RegistryKey implementations whose identity depends on supplied type arguments.

Subclasses are typically nested Key types inside suppliable declarations and are annotated with Suppliable. Two keys are equal when they have the same runtime class and their Supply-annotated type parameters are described by equal SuppliedType values (obtained via suppliedTypeOf). This allows distinct key instances that share the same supplied types to be treated as the same key inside a ProviderRegistry.

Type Parameters

T

The type of the value associated with this key in a registry.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
override val context: RegistryKeyContext

The RegistryKeyContext that defines equality and hashing for this key based on supplied types.

Link copied to clipboard
open val impliedKeys: ImpliedKeysRegistry<T>

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean

Checks whether this key is equal to other.

Link copied to clipboard
override fun hashCode(): Int

Returns the hash code of this key.