Class KotlinDetector

java.lang.Object
org.neo4j.ogm.metadata.KotlinDetector

public final class KotlinDetector extends Object
A common delegate for detecting Kotlin's presence and for identifying Kotlin types. This version has been adapted from Spring Framework's org.springframework.core.KotlinDetector. Thanks to Juergen and Sebastien.
Author:
Juergen Hoeller, Sebastien Deleuze, Michael J. Simons
  • Method Details

    • isKotlinPresent

      public static boolean isKotlinPresent()
      Determine whether Kotlin is present in general.
    • isKotlinType

      public static boolean isKotlinType(Class<?> clazz)
      Determine whether the given Class is a Kotlin type (with Kotlin metadata present on it).