Implicit conversion between Scala.Long and Java.lang.Long in collections
问题 I'm using JavaConverters to go from a Java SortedSet to a Vector. val lines = function.getInstructions.asScala.toVector My getInstructions function returns an ArrayList of java.lang.Long, yet the consuming code requires Scala.Long. Is there a way to do this without changing all of my consuming code to use Java.lang.Long? Furthermore, is there a way to do an implicit conversion to a value class to allow random access to the ArrayList without allocating an extra object as above? Thanks a ton