I'm using a mutable HashMap with the MultiMap mixin and noticed that the map.add
method is now deprecated:
val fieldTokenMap = new HashMap[String, scala.collection.mutable.Set[Int]] with MultiMap[String, Int]
// ...
fieldTokenMap add (token, docId)
I'm basically mapping a string or token to a list of ids. Is there a different way I'm supposed to use the Map and MultiMap in Scala?
Thanks.
As the deprecation message says, use addBinding
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With