lookup Defaults Constructor
open fun <T> lookupDefaultsConstructor(targetClass: Class<T>): Constructor<T>
Content copied to clipboard
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}
.