Is there any way for kotlin to easily get generic information on a class?

I can get it by reflection when I write java. I wonder if there are other convenient ways for kotlin.

Mar.10,2021

Kotlin, like Java, still requires reflection to get generic information. The reflection API of


Kotlin (from kotlin-reflect.jar) can get the generic parameter list of the class through the arguments of KType.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6f8ff-26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6f8ff-26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?