You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Classes can't be directly matched against, one has to write it like:
defmatchClass( s: String, clazz: Class[_] =
{
clazz match {
case x if x==classOf[String] => s
case x if x==classOf[java.lang.Integer] = java.lang.Integer.valueOf( s )
}
}