isAnnotationPresent

Checks if javaClass is annotated with T annotation.

Return

true if javaClass is annotated with T.


fun <T : Annotation> isAnnotationPresent(annotationType: KClass<T>): Boolean
fun <T : Annotation> isAnnotationPresent(annotationType: Class<T>): Boolean

Checks if javaClass is annotated with T annotation.

Return

true if javaClass is annotated with T.

Parameters

annotationType

class of the annotation to check.