tag

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

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


inline fun <T : Any> tag(): T?(source)

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