ForSuperTypes

data class ForSuperTypes(val superTypes: Set<KClass<*>>) : TypeLookup

Helper class for finding superTypes of given base type

Result to calls of getAllCandidatesFor and cached internally for future reuse.

Constructors

Link copied to clipboard
fun ForSuperTypes(superTypes: Set<KClass<*>>)

Functions

Link copied to clipboard
open override fun getAllCandidatesFor(type: KClass<*>): Set<KClass<*>>

Gets all superTypes for the given base type

Link copied to clipboard
fun getDistinctFor(type: KClass<*>): KClass<*>

Gets a distinct candidate for the given type

Link copied to clipboard
fun <T : Any> getDistinctForOrNull(type: KClass<T>): KClass<T>?

Get a distinct super type of the given type or null if there is none or multiple candidates

Link copied to clipboard
fun getLookupBlueprint(type: KClass<*>): LazyServiceLookupBlueprint<*>

Get all superTypes for the given base type as a LazyServiceLookupBlueprint

Properties

Link copied to clipboard
val superTypes: Set<KClass<*>>