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

commonMain.org.kodein.di.expected.kt Maven / Gradle / Ivy

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