I have a java map: java.util.Map> and I would like to convert it to the scala map: Map[SomeObjec
java.util.Map>
Map[SomeObjec
You can convert the Java Map into Scala Map using the below function:
val scalaMap = javaMap.asScala;
For using this you need to import the import scala.collection.JavaConverters._ library.
Hope this helps.