com.hexagonkt.injection.Target.kt Maven / Gradle / Ivy
package com.hexagonkt.injection
import kotlin.reflect.KClass
data class Target(
val type: KClass,
val tag: Any = Unit,
) {
companion object {
inline fun Target(tag: Any = Unit) =
Target(T::class, tag)
}
override fun toString(): String =
if (tag == Unit) type.toString()
else "$type with tag '$tag'"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy