getConstructorByArgs

open fun <T> getConstructorByArgs(@NonNull clazz: Class<T>, args: Array<Any>): Constructor<T>

Gets the constructor for class T matching the specified arguments

Return

The found constructor

Parameters

clazz

T.class

args

The arguments that should be passed to the constructor. arguments [ "hello", 12 ] would match constructor(String s, int i)

<T>

The class

Throws

No such constructor found