Reputation: 7996
How do you get the class in scala equivalent to User.class?
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...
Upvotes: 0
Views: 48
Reputation: 206926
Using classOf:
classOf
val cls = classOf[User]
Upvotes: 1