All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hexagonkt.injection.Target.kt Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
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