It is clear to me how to do the conversion inside the Scala code, but
how do you them in java? In particularly I am trying to turn a
java.List into a scala List.
Best Regards
Edmondo
Well, from Scala you'd do something like this:
scala.collection.immutable.List$.MODULE$.apply(scala.collection.JavaConversions$.MODULE$.collectionAsScalaIterable(myJavaList).toSeq:
_*)
You might need to sprinkle some type annotations in there, and loose
": _*", when converting it to Java. I'd try to come up with Java's
code, but I have no Java REPL to try it out. :-)
--
Daniel C. Sobral
I travel to the future all the time.
That's MODULE$ stuff just seems hairy.