newInstance

@NotNull
open fun <T> newInstance(@NotNull constructor: Constructor<T>, args: Array<Any>): T

create instance

Return

instance

Parameters

constructor

create instance

args

args

<T>

instance type

Throws

InvocationTargetException

InstantiationException

IllegalAccessException