Jasin Colegrove
01/27/2022, 12:52 PMJoffrey
01/27/2022, 12:55 PMwhen
? Could you give a bit more context? How do you get the instance of SimpleListProperty<T>
and what is t
here?
In general, if this class itself doesn't give access to the class of T
, you can't. It is erased, so at runtime all you see is SimpleListProperty
, not SimpleListProperty<String>
. However, depending on how/where you want to use this information, using reified
types may enable you to still get the information.Jasin Colegrove
01/27/2022, 1:07 PMfun <T: Entity<T>> createLog(
filename: String,
logType: LogType,
entityList: SimpleListProperty<T>,
projectNum: SimpleStringProperty,
projectName: SimpleStringProperty
I pass it to the function, T is an Entity<T> from ktorm, they are database entires.