innermostBoxedClass

fun KClass<*>.innermostBoxedClass(maxDepth: Int = 10): KClass<*>(source)

Underlying property class of a value class or self. When the value class has one or more nested value classes, the innermost boxed class is returned (up to a maximum depth to prevent infinite recursion).

Parameters

maxDepth

Maximum recursion depth (default 10)