티스토리 뷰

공부

[kotlin] instanceOf list (is List<*>)

승가비 2023. 2. 14. 17:13
728x90
if (v is List<*>) {

https://stackoverflow.com/questions/44098780/how-to-check-instanceof-class-in-kotlin

 

How to check "instanceof " class in kotlin?

In kotlin class, I have method parameter as object (See kotlin doc here ) for class type T. As object I am passing different classes when I am calling method. In Java we can able to compare class u...

stackoverflow.com

 

728x90
댓글