commonMain.org.kodein.di.expected.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kodein-di-js Show documentation
Show all versions of kodein-di-js Show documentation
KODEIN Dependency Injection Core
package org.kodein.di
import org.kodein.type.TypeToken
import org.kodein.type.erasedOf
import kotlin.reflect.KClass
/**
* Returns a type token representing the actual type of the given argument.
*
* @param T The type, or a parent type of, that the returned TypeToken will represent.
* @param obj An object whose actual type will be extract.
*/
@Suppress("FunctionName")
@Deprecated(
message = "Has been reimplemented in Kodein-Type",
ReplaceWith("erasedOf(obj)", "org.kodein.type"),
level = DeprecationLevel.ERROR
)
public fun TTOf(obj: T): TypeToken = erasedOf(obj)
/** @suppress */
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
public expect annotation class Volatile()
© 2015 - 2024 Weber Informatics LLC | Privacy Policy