lookupDefaultsConstructor

open fun <T> lookupDefaultsConstructor(targetClass: Class<T>): Constructor<T>

Reflectively looks up the defaults constructor of a kotlin class.

Return

the instantiated {@code targetClass} instance.

Parameters

targetClass

the target kotlin class to instantiate.

<T>

the type of {@code targetClass}.