How to pass the current class as an argument? In java we do:
mymethod (this.class)
or
mymethod (MyClass.class)
How to pass the current scala class to this method?
this.getClass or classOf[MyClass]
this.getClass
classOf[MyClass]
Source: https://habr.com/ru/post/1789499/More articles:NetBeans Menu Profiling ... missing? - javaWriting data to TcpSocket in its own thread - multithreadingDoes CSS3 offer a better way to have a site with two columns with a header and footer, columns with the same height and width of the width of the columns? - htmlGAE / J: Development and production environment - javaLua: efficient work (read / write) in C-style, dynamic arrays with C distribution in lua - cHow can two different TThread descendants share an OnTerminate handler? - multithreadingBlack screen when changing device orientation - androidSending email in a local environment in GAE - javaVisualize vector graphics in Java, which library? - javaQt - QTreeView и SQL - рекомендации по производительности - c++All Articles