getConstructor

fun getConstructor(vararg parameterTypes: KClass<*>): Constructor
fun getConstructor(vararg parameterTypes: Class<*>): Constructor

Finds a constructor given the selected parameterTypes.

Return

a Constructor matching the criteria.

Parameters

parameterTypes

classes of the constructor parameters.

See also

Throws

ReflectionException

if unable to find the constructor.