ForBaseTypes

data class ForBaseTypes(baseTypes: Set<KClass<*>>) : TypeLookup

Helper class for finding baseTypes of a given super type

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

Constructors

Link copied to clipboard
fun ForBaseTypes(baseTypes: Set<KClass<*>>)

Functions

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

Gets all baseTypes that are base types of the given super type

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

Gets a distinct candidate for the given type

Properties

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