tag

@JvmName(name = "reifiedTag")
inline fun <T : Any> tag(): T?

Returns the tag attached with T as a key, or null if no tag is attached with that key.


fun <T : Any> tag(type: KClass<T>): T?
fun <T> tag(type: Class<out T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.