https://kotlinlang.org logo
s

Shawn

06/14/2018, 9:49 PM
not sure if there’s a more Kotlin-specific approach, but there’s
Copy code
Class.forName(xName).newInstance() as T
perhaps