I am trying to create Guava TreeMultimap object in scala, using TreeMultimap.create method, but can’t figure out how to pass type information there([Double, String]).
Any ideas?
As far as I understand I could use TreeMultimap.create() expression in Java for that.
Try this:
When I just use
Doubleis complains that it’s not ajava.lang.Comparable(since Scala’sDoubleis really meant to be Java’sdouble). Usingjava.lang.Doublegets around this easily.