jbrown
jbrown

Reputation: 7996

Scala equivalent of User.class

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...

Upvotes: 0

Views: 48

Answers (1)

Jesper
Jesper

Reputation: 206926

Using classOf:

val cls = classOf[User]

Upvotes: 1

Related Questions