findAssociatedObject

actual inline fun <T : Annotation> KClass<*>.findAssociatedObject(): Any?(source)

If T is an @AssociatedObjectKey-annotated annotation class and this class is annotated with @T (S::class), returns object S.

Otherwise returns null.

Since Kotlin

1.1
actual inline fun <T : Annotation> KClass<*>.findAssociatedObject(): Any?(source)

If T is an @AssociatedObjectKey-annotated annotation class and this class is annotated with @T (S::class), returns object S.

Otherwise returns null.

Since Kotlin

1.3
actual inline fun <T : Annotation> KClass<*>.findAssociatedObject(): Any?(source)

If T is an @AssociatedObjectKey-annotated annotation class and this class is annotated with @T (S::class), returns object S.

Otherwise returns null.

Since Kotlin

1.8
actual inline fun <T : Annotation> KClass<*>.findAssociatedObject(): Any?(source)

If T is an @AssociatedObjectKey-annotated annotation class and this class is annotated with @T (S::class), returns object S.

Otherwise returns null.

Since Kotlin

1.8