RichUtils / pyxis.uzuki.live.richutilskt.utils / RConstructorBuilder / <init>
<init>
RConstructorBuilder(targetCls: Class<T>)
Class for generate Instance of given Class object
Usages:
- Constructor hasn't any parameter
val sampleClassObj = RConstructorBuilder(SampleClass::class.java).newInstance()
- Constructor has at least one parameter
val sampleClass2Obj = RConstructorBuilder(SampleClass2::class.java)
.addParameter(String::class.java, "ABC")
.addParameter(Int::class, 20)
.newInstance()