
com.github.salomonbrys.kodein.erasedComp.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kodein-core Show documentation
Show all versions of kodein-core Show documentation
Kotlin Dependency Injection Core
The newest version!
package com.github.salomonbrys.kodein
/**
* Creates a [CompositeTypeToken] for an erased generic type.
*
* Example: to create an erased type token representing `Set`, use `erasedComp1, String>()`.
*
* @param T The main type represented by this type token.
* @param A1 The type parameter of the main type.
*/
inline fun erasedComp1() = CompositeTypeToken(erased(), erased())
/**
* Creates a [CompositeTypeToken] for an erased generic type.
*
* Example: to create an erased type token representing `Map`, use `erasedComp2
© 2015 - 2025 Weber Informatics LLC | Privacy Policy