getDeclaredConstructor

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

Finds a declared 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.