Closed GoogleCodeExporter closed 9 years ago
The real question is whether it should be sorted in both directions, how that
sorting should work...or what.
One possible alternative is a Maps.newBiMap(Map, Map), which would allow for
custom BiMaps -- but the semantics of the ordering wouldn't be 100% clear here,
either.
Original comment by lowas...@google.com
on 7 Nov 2012 at 5:05
Presumably in that custom case with Maps.newBiMap(treeMap1, treeMap2) the
ordering of keys and of values would be independent. Iterating through keySet()
or values() gives you the first ordering, iterating through reverse().keySet()
or reverse().values() gives you the second.
Difficulties may arise if the two maps have inconsistent notions of equality
etc.
Original comment by joe.j.kearney
on 7 Nov 2012 at 6:02
Merging this discussion with the general case of Maps.newBiMap(Map, Map).
Original comment by lowas...@google.com
on 7 Nov 2012 at 8:21
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:13
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:08
Original issue reported on code.google.com by
cody.sch...@gmail.com
on 6 Nov 2012 at 10:29