How to pass current class as argument? In java we do:
mymethod (this.class)
or
mymethod (MyClass.class)
How can I pass a scala current class to this method?
this.getClass
or classOf[MyClass]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With