accessibleConstructor
open fun <T> accessibleConstructor(clazz: Class<T>, parameterTypes: Array<Class<out Any>>): Constructor<T>
Obtain an accessible constructor for the given class and parameters.
Return
the constructor reference
Since
5.0
Parameters
clazz
the clazz to check
parameterTypes
the parameter types of the desired constructor
Throws
if no such constructor exists