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

commonMain.co.touchlab.skie.configuration.ConfigurationTarget.kt Maven / Gradle / Ivy

package co.touchlab.skie.configuration

import kotlin.reflect.KClass

interface ConfigurationTarget {

    fun hasAnnotation(kClass: KClass): Boolean

    fun  findAnnotation(kClass: KClass): T?
}

inline fun  ConfigurationTarget.hasAnnotation(): Boolean =
    this.hasAnnotation(T::class)

inline fun  ConfigurationTarget.findAnnotation(): T? =
    this.findAnnotation(T::class)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy