0

How do you get the class in scala equivalent to User.class?

Apparently this is too short even though it's just a really really really short little concise little question that doesn't require elaboration...

jbrown
  • 7,518
  • 16
  • 69
  • 117
  • 1
    possible duplicate of [Scala equivalent of Java java.lang.Class Object](http://stackoverflow.com/questions/1135248/scala-equivalent-of-java-java-lang-classt-object) – dcastro Sep 06 '15 at 19:58

1 Answers1

1

Using classOf:

val cls = classOf[User]
Jesper
  • 202,709
  • 46
  • 318
  • 350